Last active
August 4, 2019 08:10
-
-
Save wacko/2092e62b6c52ab54f882392998219f59 to your computer and use it in GitHub Desktop.
Nativefier installer (Node.js + HomeBrew)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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