diff options
author | zxp19821005 | 2024-03-22 09:28:11 +0800 |
---|---|---|
committer | zxp19821005 | 2024-03-22 09:28:11 +0800 |
commit | 7215329e82144261dfbf91932d3116374e6dd639 (patch) | |
tree | 4518135c02dfc488ee5ccdc6101a6dfad49a96fd | |
parent | d53a4672aecbbe13dc54eb6858fceae20637613b (diff) | |
download | aur-arctis-monitor-bin.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | arctis-monitor.sh | 5 |
3 files changed, 10 insertions, 8 deletions
@@ -1,11 +1,11 @@ pkgbase = arctis-monitor-bin pkgdesc = Electron Tray application to view Battery Level of Arctis Headsets pkgver = 0.0.12 - pkgrel = 5 + pkgrel = 6 url = https://github.com/richrace/arctis-monitor arch = x86_64 license = MIT - depends = electron26 + depends = electron26-bin depends = libusb depends = nodejs provides = arctis-monitor=0.0.12 @@ -15,6 +15,6 @@ pkgbase = arctis-monitor-bin source = arctis-monitor.sh sha256sums = 35f546aa8a23eb79527a1ff489fa9ab9d1412f69fe2b15e75e43efcfa1e844e9 sha256sums = bd5c70f61f5c60d42bffbadd12de9a6e0f3272afe8d869e7251d4f0c6d67025d - sha256sums = 50b10386d13e5bec806aeb78f819c4edd0208a4d184332e53866c802731217fe + sha256sums = dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8 pkgname = arctis-monitor-bin @@ -2,7 +2,7 @@ pkgname=arctis-monitor-bin pkgver=0.0.12 _electronversion=26 -pkgrel=5 +pkgrel=6 pkgdesc="Electron Tray application to view Battery Level of Arctis Headsets" arch=("x86_64") url="https://github.com/richrace/arctis-monitor" @@ -10,7 +10,7 @@ license=("MIT") provides=("${pkgname%-bin}=${pkgver}") conflicts=("${pkgname%-bin}") depends=( - "electron${_electronversion}" + "electron${_electronversion}-bin" 'libusb' 'nodejs' ) @@ -21,11 +21,12 @@ source=( ) sha256sums=('35f546aa8a23eb79527a1ff489fa9ab9d1412f69fe2b15e75e43efcfa1e844e9' 'bd5c70f61f5c60d42bffbadd12de9a6e0f3272afe8d869e7251d4f0c6d67025d' - '50b10386d13e5bec806aeb78f819c4edd0208a4d184332e53866c802731217fe') + 'dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8') build() { sed -e "s|@electronversion@|${_electronversion}|g" \ -e "s|@appname@|${pkgname%-bin}|g" \ -e "s|@runname@|app|g" \ + -e "s|@options@||g" \ -i "${srcdir}/${pkgname%-bin}.sh" bsdtar -xf "${srcdir}/data."* } diff --git a/arctis-monitor.sh b/arctis-monitor.sh index 86cb3dc6a9bf..7ddcaab8d734 100644 --- a/arctis-monitor.sh +++ b/arctis-monitor.sh @@ -2,6 +2,7 @@ set -e _APPDIR="/usr/lib/@appname@" _RUNNAME="${_APPDIR}/@runname@" +_OPTIONS="@options@" export PATH="${_APPDIR}:${PATH}" export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" export ELECTRON_IS_DEV=0 @@ -9,7 +10,7 @@ export ELECTRON_FORCE_IS_PACKAGED=true export NODE_ENV=production cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "$@" || exit $? else - exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "$@" || exit $? fi
\ No newline at end of file |