electron-48: added logic to launch app in fully sandboxed mode for mac

This commit is contained in:
Vishwas Shashidhar 2017-06-25 13:59:31 +05:30
parent 150ebaf70a
commit 9dd22f9333

View File

@ -43,3 +43,12 @@ fi
## Remove the temp settings file created ##
rm -f $tempFilePath
## For launching symphony with sandbox enabled, create a shell script that is used as the launch point for the app
EXEC_PATH=$installPath/Symphony.app/Contents/MacOS
mv $EXEC_PATH/Symphony $EXEC_PATH/Symphony-bin
cat > $EXEC_PATH/Symphony << EOT
#!/bin/sh
exec "\${0%/*}/Symphony-bin" --enable-sandbox \$@
EOT
chmod 755 $EXEC_PATH/Symphony