mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-17 00:06:32 +00:00
Merge pull request #3007 from balena-io/fix-appimage
Don't add --no-sandbox when ELECTRON_RUN_AS_NODE is 1 Fixes #2996
This commit is contained in:
commit
c251bce44d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user