Last active
November 25, 2019 13:20
-
-
Save willeccles/4705136b0d9fe45ded5da37ef2860e70 to your computer and use it in GitHub Desktop.
Package RingCentral Glip as a native Linux Electron app with Nativefier.
This file contains hidden or 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
#! /bin/bash | |
# This requires nativefier to be installed, so do that first: | |
# https://github.com/jiahaog/nativefier | |
# I know this uses javascript, which is evil, but it must be done :( | |
# You'll also need to download an image, which is used as input | |
# for this script. Specify a path to a PNG. | |
# A .desktop entry is included with this script; you may need to | |
# modify it depending on where you place the packaged output. | |
if [[ $# == 0 ]]; then | |
echo "Please supply an icon." | |
exit 1 | |
fi | |
nativefier https://app.glip.com \ | |
--tray \ | |
--name "RingCentral" \ | |
--icon "$1" \ | |
--internal-urls "(app.)?(ringcentral|glip).com" |
This file contains hidden or 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
[Desktop Entry] | |
Type=Application | |
Name=RingCentral | |
Comment=RingCentral Glip messaging client | |
GenericName=Internet Messenger | |
Icon=/usr/local/share/ring-central-linux-x64/resources/app/icon.png | |
Exec=/usr/local/share/ring-central-linux-x64/ring-central | |
Terminal=false | |
Categories=Network;InstantMessaging; | |
StartupWMClass=ringcentral |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment