Skip to content

Instantly share code, notes, and snippets.

@zeke
Last active August 8, 2019 22:17
Show Gist options
  • Save zeke/97d3ee55e906bf20ca6430c9982b6e92 to your computer and use it in GitHub Desktop.
Save zeke/97d3ee55e906bf20ca6430c9982b6e92 to your computer and use it in GitHub Desktop.
Create a standalone GitHub Gmail OS X client using electron nativefier
npm install -g node-icns nativefier
curl -o cat.png https://octodex.github.com/images/adventure-cat.png
nicns --in cat.png --out cat.icns
echo "console.log('whoa script injection')" > inject.js
nativefier --name "GitHub Gmail" --icon cat.icns --inject inject.js https://inbox.google.com
rm -rf /Applications/GitHub\ Gmail.app
mv GitHub\ Gmail-darwin-x64/GitHub\ Gmail.app /Applications/
open /Applications/GitHub\ Gmail.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment