Skip to content

Instantly share code, notes, and snippets.

@liyu1981
Created March 12, 2019 00:11
Show Gist options
  • Save liyu1981/f52a7d4d96e507f63c359986808ce9f3 to your computer and use it in GitHub Desktop.
Save liyu1981/f52a7d4d96e507f63c359986808ce9f3 to your computer and use it in GitHub Desktop.
update script for nativefier-workchat
#!/bin/bash
echo "create new version of nativefier-wrokchat"
nativefier -i ./workplace.png https://fb.workplace.com -n nativefier-workchat
if [ -d "/Applications/nativefier-workchat.app" ]; then
echo "backup..."
mv /Applications/nativefier-workchat.app ~/Desktop/nativefier-workchat-backup.app
echo "done => ~/Desktop"
fi
echo "copy updated versoin to Applications"
cp -r nativefier-workchat-darwin-x64/nativefier-workchat.app /Applications/
echo "remove temp files"
rm -rf nativefier-workchat-darwin-x64
echo 'done!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment