diff options
Diffstat (limited to 'fishing-funds.sh')
-rw-r--r-- | fishing-funds.sh | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/fishing-funds.sh b/fishing-funds.sh index 4ddc52e604ae..aacd8f895847 100644 --- a/fishing-funds.sh +++ b/fishing-funds.sh @@ -1,11 +1,15 @@ -#!/bin/bash -_ELECTRON=/usr/bin/electron27 -APPDIR=/usr/lib/fishing-funds -export PATH="${APPDIR}:${PATH}" -export LD_LIBRARY_PATH="${APPDIR}/lib:${LD_LIBRARY_PATH}" -_ASAR="${APPDIR}/app.asar" +#!/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 +cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec ${_ELECTRON} ${_ASAR} "$@" + exec electron@electronversion@ "${_ASAR}" "$@" else - exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" -fi
\ No newline at end of file + exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" +fi +exit
\ No newline at end of file |