diff options
author | zxp19821005 | 2023-12-21 15:26:54 +0800 |
---|---|---|
committer | zxp19821005 | 2023-12-21 15:26:54 +0800 |
commit | 3153275ed4e15ec1344247d97eb7a8f68f8c1506 (patch) | |
tree | f0e3c4f88d2068a8544c029cca7789c94b00128e /ficus.sh | |
parent | 34e05998b89c10e1c7b7b116d4be6ef65ad997cd (diff) | |
download | aur-3153275ed4e15ec1344247d97eb7a8f68f8c1506.tar.gz |
fix errors
Diffstat (limited to 'ficus.sh')
-rw-r--r-- | ficus.sh | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -1,11 +1,17 @@ -#!/bin/bash -_ELECTRON=/usr/bin/electron13 -APPDIR="/usr/lib/ficus" -export PATH="${APPDIR}:${PATH}" -#export LD_LIBRARY_PATH="${APPDIR}/swiftshader:${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 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 |