Don't add --no-sandbox when ELECTRON_RUN_AS_NODE true

Changelog-entry: Don't add --no-sandbox when ELECTRON_RUN_AS_NODE true
Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2019-12-09 22:46:34 +01:00 committed by Alexis Svinartchouk
parent a77734797a
commit 1408dd48a1

View File

@ -16,7 +16,7 @@ exports.default = function(context) {
scriptPath, scriptPath,
outdent` outdent`
#!/bin/bash #!/bin/bash
if [[ $EUID -ne 0 ]]; then if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
"\${BASH_SOURCE%/*}"/${context.packager.executableName}.bin "$@" "\${BASH_SOURCE%/*}"/${context.packager.executableName}.bin "$@"
else else
"\${BASH_SOURCE%/*}"/${context.packager.executableName}.bin "$@" --no-sandbox "\${BASH_SOURCE%/*}"/${context.packager.executableName}.bin "$@" --no-sandbox