mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
electron-48: added logic to launch app in fully sandboxed mode for mac
This commit is contained in:
parent
150ebaf70a
commit
9dd22f9333
@ -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
|
Loading…
Reference in New Issue
Block a user