So I wanted a way to update zmNinja automatically without having to visit the web.
Nothing in the below is complicated, but sometimes it's nice to put the pieces together.
I used "download-github-release" from here: https://www.npmjs.com/package/download-github-release
This works on both Windows and Linux.
On linux (using Ubuntu as a sample here), issue:
Code: Select all
sudo apt install nodejs nodejs-legacy npm
Code: Select all
sudo npm install -g download-github-release
download-github-release -s linux64bit pliablepixels zmNinja /PATH/TO/WHERE/YOU/WANT
That's it! It will automatically download and unpackage it in a folder called "zmNinja-linux64bit" inside the above path. Just point your shortcut to the zmNinja executable in this place, and you're all set.
I then created a cron job to run the above command daily at 3am, but also put a shortcut to it on my desktop next to the app,
For Windows, you'll need to download Node.js from here: http://blog.teamtreehouse.com/install-n ... pm-windows
Once it's downloaded, run the executable to install Node.js.
Once installed, issue the same npm install command from above (this time without the sudo):
Code: Select all
npm install -g download-github-release
Code: Select all
C:\Users\YOUR_USERNAME\AppData\Roaming\npm\download-github-release.cmd -s win64 pliablepixels zmNinja C:\Users\YOUR_USERNAME\Documents