diff options
author | zxp19821005 | 2024-02-27 11:43:01 +0800 |
---|---|---|
committer | zxp19821005 | 2024-02-27 11:43:01 +0800 |
commit | 9b7291eb3c80a2412fb3f3bcb98a09d31895013d (patch) | |
tree | 16c0ce72697d094e23f56f2328bb24296013f1c7 | |
parent | 155338d863e722de3ddb11e274d18bfa546f3395 (diff) | |
download | aur-9b7291eb3c80a2412fb3f3bcb98a09d31895013d.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 15 | ||||
-rw-r--r-- | frame-eth.sh | 9 |
3 files changed, 16 insertions, 14 deletions
@@ -1,18 +1,18 @@ pkgbase = frame-eth-bin pkgdesc = System-wide Web3 pkgver = 0.6.8 - pkgrel = 3 + pkgrel = 4 url = https://frame.sh/ arch = aarch64 arch = x86_64 - license = GPL3 + license = GPL-3.0-only depends = electron23 provides = frame-eth=0.6.8 conflicts = frame-eth conflicts = frame-eth-dev conflicts = frame-eth-canary source = frame-eth.sh - sha256sums = d4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231 + sha256sums = 0fb7b939a071f4a08476bdd5aa143d2aa8cd335c83309f9919be16cd5c3e2014 source_aarch64 = frame-eth-0.6.8-aarch64.deb::https://github.com/floating/frame/releases/download/v0.6.8/frame_0.6.8_arm64.deb sha256sums_aarch64 = 92dd36a4a68992985293aa796573877c33d8e4d1e036d2b2de167622aece374b source_x86_64 = frame-eth-0.6.8-x86_64.deb::https://github.com/floating/frame/releases/download/v0.6.8/frame_0.6.8_amd64.deb @@ -4,12 +4,15 @@ pkgname="${_pkgname}-eth-bin" _appname=Frame pkgver=0.6.8 _electronversion=23 -pkgrel=3 +pkgrel=4 pkgdesc="System-wide Web3" -arch=("aarch64" "x86_64") +arch=( + "aarch64" + "x86_64" +) url="https://frame.sh/" _ghurl="https://github.com/floating/frame" -license=('GPL3') +license=('GPL-3.0-only') provides=("${pkgname%-bin}=${pkgver}") conflicts=( "${pkgname%-bin}" @@ -22,15 +25,15 @@ depends=( source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${_ghurl}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_arm64.deb") source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${_ghurl}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_amd64.deb") source=("${pkgname%-bin}.sh") -sha256sums=('d4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231') +sha256sums=('0fb7b939a071f4a08476bdd5aa143d2aa8cd335c83309f9919be16cd5c3e2014') sha256sums_aarch64=('92dd36a4a68992985293aa796573877c33d8e4d1e036d2b2de167622aece374b') sha256sums_x86_64=('356f81057f557f5f2ff945c1c215265933930484033525fe1c63a2fa511f41e2') 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" - bsdtar -xf "${srcdir}/data.tar.xz" + bsdtar -xf "${srcdir}/data."* sed -e "s|/opt/${_appname}/${_pkgname}|${pkgname%-bin}|g" \ -e "s|Icon=${_pkgname}|${pkgname%-bin}|g" \ -i "${srcdir}/usr/share/applications/${_pkgname}.desktop" diff --git a/frame-eth.sh b/frame-eth.sh index aacd8f895847..f9ced1432cfc 100644 --- a/frame-eth.sh +++ b/frame-eth.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 |