Skip to content

Instantly share code, notes, and snippets.

@wacko

wacko/01_node.sh

Last active Aug 4, 2019
Embed
What would you like to do?
Nativefier installer (Node.js + HomeBrew)
brew install 'nvm'
NODE_VERSION="4.4.3"
if ! grep -qs 'source $(brew --prefix nvm)/nvm.sh' ~/.bash_profile; then
printf 'export PATH="$PATH:/usr/local/lib/node_modules"\n' >> ~/.bash_profile
printf 'source $(brew --prefix nvm)/nvm.sh\n' >> ~/.bash_profile
fi
source $(brew --prefix nvm)/nvm.sh
nvm install "$NODE_VERSION"
println "Setting $NODE_VERSION as the global default nodejs..."
nvm alias default "$NODE_VERSION"
npm install nativefier -g
nativefier https://trello.com "Trello" --name "Trello" --icon trello-icon.png
nativefier https://maps.google.com "Google Maps" --name "Google Maps" --icon https://upload.wikimedia.org/wikipedia/en/1/19/Google_Maps_Icon.png
nativefier https://web.whatsapp.com/ "WhatsApp" --name "WhatsApp" --icon http://jiahaog.com/nativefier-icons/files/whatsapp.png
nativefier https://www.messenger.com "Messenger" --name "Messenger" --icon http://jiahaog.com/nativefier-icons/files/messenger.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.