diff options
author | zxp19821005 | 2023-12-20 12:02:17 +0800 |
---|---|---|
committer | zxp19821005 | 2023-12-20 12:02:17 +0800 |
commit | 9baac07a6ee5a0603f531f47f0e080aca6f6048e (patch) | |
tree | c5a45cbb61c788432580475ba5433f976054a802 /borg-explorer.sh | |
parent | 6138efa7df095abda3d259a32c97202d213ffd8b (diff) | |
download | aur-9baac07a6ee5a0603f531f47f0e080aca6f6048e.tar.gz |
fix errors
Diffstat (limited to 'borg-explorer.sh')
-rw-r--r-- | borg-explorer.sh | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/borg-explorer.sh b/borg-explorer.sh index 18c6dfefd2c4..c77c53567639 100644 --- a/borg-explorer.sh +++ b/borg-explorer.sh @@ -1,11 +1,17 @@ -#!/bin/bash -_ELECTRON=/usr/bin/electron22 -APPDIR="/usr/lib/borg-explorer" -export PATH="${APPDIR}:${PATH}" -#export LD_LIBRARY_PATH="${APPDIR}/lib:${LD_LIBRARY_PATH}" -_ASAR="${APPDIR}/app" +#!/bin/sh +set -e +_APPDIR="/usr/lib/@appname@" +_ASAR="${_APPDIR}/@appasar@" +export PATH="${_APPDIR}:${PATH}" +export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" +export ELECTRON_IS_DEV=0 +export NODE_ENV=production if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec ${_ELECTRON} ${_ASAR} "$@" + cd "${_APPDIR}" + exec electron@electronversion@ "${_ASAR}" "$@" + exit else - exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" + cd "${_APPDIR}" + exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" + exit fi
\ No newline at end of file |