diff options
author | zxp19821005 | 2024-03-01 11:46:32 +0800 |
---|---|---|
committer | zxp19821005 | 2024-03-01 11:46:32 +0800 |
commit | 4976ea488a754dd21ddbc789902c229105c0bc9c (patch) | |
tree | fadb1bd6e11e37385d6435ab9448bffdabbed907 /epherome.sh | |
parent | d59a564e548589a3780166164469072e4ab07a76 (diff) | |
download | aur-4976ea488a754dd21ddbc789902c229105c0bc9c.tar.gz |
fix errors
Diffstat (limited to 'epherome.sh')
-rw-r--r-- | epherome.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/epherome.sh b/epherome.sh index 0d20cddc70ca..86cb3dc6a9bf 100644 --- a/epherome.sh +++ b/epherome.sh @@ -1,14 +1,15 @@ -#!/bin/sh +#!/bin/bash set -e _APPDIR="/usr/lib/@appname@" -_ASAR="${_APPDIR}/@appasar@" +_RUNNAME="${_APPDIR}/@runname@" export PATH="${_APPDIR}:${PATH}" export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" export ELECTRON_IS_DEV=0 +export ELECTRON_FORCE_IS_PACKAGED=true export NODE_ENV=production cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron@electronversion@ "${_ASAR}" "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $? else - exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $? fi
\ No newline at end of file |