Skip to content

Instantly share code, notes, and snippets.

@wacko
Last active August 4, 2019 08:10
Show Gist options
  • Save wacko/2092e62b6c52ab54f882392998219f59 to your computer and use it in GitHub Desktop.
Save wacko/2092e62b6c52ab54f882392998219f59 to your computer and use it in GitHub Desktop.
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