diff options
author | zxp19821005 | 2023-12-18 15:38:00 +0800 |
---|---|---|
committer | zxp19821005 | 2023-12-18 15:38:00 +0800 |
commit | c66288c2134e2aa59e96ff7c734b90b18108abbb (patch) | |
tree | 887550242dfd7e6221000ce5efd0bdc03946e661 /buttercup-desktop.sh | |
parent | 746b2419db59d46ced8069ab381fa8feeb4221a4 (diff) | |
download | aur-c66288c2134e2aa59e96ff7c734b90b18108abbb.tar.gz |
update to 2.24.4
Diffstat (limited to 'buttercup-desktop.sh')
-rw-r--r-- | buttercup-desktop.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/buttercup-desktop.sh b/buttercup-desktop.sh index 2ec4412e5c4f..98f84b151b4f 100644 --- a/buttercup-desktop.sh +++ b/buttercup-desktop.sh @@ -1,10 +1,11 @@ -#!/bin/bash +#!/bin/sh set -e _APPDIR="/usr/lib/@appname@" +_ASAR="${_APPDIR}/@appasar@" export PATH="${_APPDIR}:${PATH}" -export ELECTRON_IS_DEV=0 export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" -_ASAR="${_APPDIR}/@appasar@" +export ELECTRON_IS_DEV=0 +export NODE_ENV=production if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then cd "${_APPDIR}" exec electron@electronversion@ "${_ASAR}" "$@" |