diff --git a/installer/mac/postinstall.sh b/installer/mac/postinstall.sh index b87de534..08beeefc 100755 --- a/installer/mac/postinstall.sh +++ b/installer/mac/postinstall.sh @@ -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 \ No newline at end of file diff --git a/installer/win/Symphony-FullSandbox.bat b/installer/win/Symphony-FullSandbox.bat new file mode 100644 index 00000000..5961063a --- /dev/null +++ b/installer/win/Symphony-FullSandbox.bat @@ -0,0 +1,20 @@ +@ECHO OFF +REM BFCPEOPTIONSTART +REM Advanced BAT to EXE Converter www.BatToExeConverter.com +REM BFCPEEXE= +REM BFCPEICON= +REM BFCPEICONINDEX=-1 +REM BFCPEEMBEDDISPLAY=0 +REM BFCPEEMBEDDELETE=1 +REM BFCPEADMINEXE=0 +REM BFCPEINVISEXE=0 +REM BFCPEVERINCLUDE=0 +REM BFCPEVERVERSION=1.0.0 +REM BFCPEVERPRODUCT=Symphony Electron +REM BFCPEVERDESC=Symphony desktop app (Foundation ODP) +REM BFCPEVERCOMPANY=Symphony +REM BFCPEVERCOPYRIGHT=© 2016 Symphony Software Foundation +REM BFCPEOPTIONEND +@ECHO ON +@echo off +start "" "%~dp0\Symphony-Electron.exe" --enable-sandbox diff --git a/installer/win/Symphony-x64.aip b/installer/win/Symphony-x64.aip index 49beae9a..7d71dd17 100644 --- a/installer/win/Symphony-x64.aip +++ b/installer/win/Symphony-x64.aip @@ -57,6 +57,7 @@ + @@ -68,15 +69,16 @@ - + - + - + + @@ -360,7 +362,7 @@ - + diff --git a/installer/win/Symphony.exe b/installer/win/Symphony.exe new file mode 100644 index 00000000..350fe5b6 Binary files /dev/null and b/installer/win/Symphony.exe differ diff --git a/package.json b/package.json index 1bc597f4..77c57629 100644 --- a/package.json +++ b/package.json @@ -10,13 +10,14 @@ "demo-win": "npm run prebuild && cross-env ELECTRON_DEV=true electron . --url=file:///demo/index.html", "demo-mac": "npm run prebuild && cross-env ELECTRON_DEV=true electron . --url=file://$(pwd)/demo/index.html", "unpacked-mac": "npm run prebuild && npm run test && build --mac --dir", - "unpacked-win": "npm run prebuild && npm run test && build --win --x64 --dir", - "unpacked-win-x86": "npm run prebuild && npm run test && build --win --ia32 --dir", + "unpacked-win": "npm run prebuild && npm run test && build --win --x64 --dir && npm run rename-exe", + "unpacked-win-x86": "npm run prebuild && npm run test && build --win --ia32 --dir && npm run rename-exe", "prebuild": "npm run rebuild && npm run browserify-preload", "browserify-preload": "browserify -o js/preload/_preloadMain.js -x electron --insert-global-vars=__filename,__dirname js/preload/preloadMain.js", "rebuild": "electron-rebuild -f", "test": "npm run lint && jest --verbose --testPathPattern test", - "lint": "eslint --ext .js js/" + "lint": "eslint --ext .js js/", + "rename-exe": "cd dist/win-unpacked && ren Symphony.exe Symphony-Electron.exe" }, "jest": { "collectCoverage": true,