diff options
author | zxp19821005 | 2024-02-28 12:48:23 +0800 |
---|---|---|
committer | zxp19821005 | 2024-02-28 12:48:23 +0800 |
commit | 6eb07be74fa5699771b5e595365f5fa2056fce92 (patch) | |
tree | 0c085da638da16cd5ae33c761a1bb614fa63d830 | |
parent | 3646cdf900e3257289a70ec559d5a40d82fadb15 (diff) | |
download | aur-6eb07be74fa5699771b5e595365f5fa2056fce92.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | space-snake.sh | 9 |
3 files changed, 10 insertions, 11 deletions
@@ -1,7 +1,7 @@ pkgbase = space-snake-bin pkgdesc = A Desktop game built with Electron and Vue.js. pkgver = 0.11.1 - pkgrel = 6 + pkgrel = 7 url = https://github.com/ilyagru/Space-Snake arch = x86_64 license = MIT @@ -14,6 +14,6 @@ pkgbase = space-snake-bin source = space-snake.sh sha256sums = b4ed62ff9b5dc3cc815f0ac5328dc602ce29f6bb3231beab622c246c7c2554f9 sha256sums = 2cf69008e16f9f81098eaed1b59e481bafb258606cc9171047db9b6fdec6cb9f - sha256sums = d4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231 + sha256sums = 0fb7b939a071f4a08476bdd5aa143d2aa8cd335c83309f9919be16cd5c3e2014 pkgname = space-snake-bin @@ -3,7 +3,7 @@ pkgname=space-snake-bin _pkgname=Space-Snake pkgver=0.11.1 _electronversion=4 -pkgrel=6 +pkgrel=7 pkgdesc="A Desktop game built with Electron and Vue.js." arch=('x86_64') url="https://github.com/ilyagru/Space-Snake" @@ -23,13 +23,13 @@ source=( ) sha256sums=('b4ed62ff9b5dc3cc815f0ac5328dc602ce29f6bb3231beab622c246c7c2554f9' '2cf69008e16f9f81098eaed1b59e481bafb258606cc9171047db9b6fdec6cb9f' - 'd4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231') + '0fb7b939a071f4a08476bdd5aa143d2aa8cd335c83309f9919be16cd5c3e2014') build() { sed -e "s|@electronversion@|${_electronversion}|" \ -e "s|@appname@|${pkgname%-bin}|g" \ - -e "s|@appasar@|app.asar|g" \ + -e "s|@runname@|app.asar|g" \ -i "${srcdir}/${pkgname%-bin}.sh" - gendesk -q -f -n --categories "Game" --name "${_pkgname}" --exec "${pkgname%-bin} %U" + gendesk -q -f -n --categories="Game" --name="${_pkgname}" --exec="${pkgname%-bin} %U" } package() { install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}" diff --git a/space-snake.sh b/space-snake.sh index aacd8f895847..f9ced1432cfc 100644 --- a/space-snake.sh +++ b/space-snake.sh @@ -1,15 +1,14 @@ #!/bin/sh set -e _APPDIR="/usr/lib/@appname@" -_ASAR="${_APPDIR}/@appasar@" +_RUNNAME="${_APPDIR}/@runname@" 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@electronversion@ "${_ASAR}" "$@" + exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $? else - exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" -fi -exit
\ No newline at end of file + exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $? +fi
\ No newline at end of file |