diff options
author | zxp19821005 | 2024-03-01 10:58:14 +0800 |
---|---|---|
committer | zxp19821005 | 2024-03-01 10:58:14 +0800 |
commit | fc40ec009b8e30b439b90f8ebb821664c3b283f2 (patch) | |
tree | e84bba98a6cc1ef0f997334ce3ca511aaca7e3a0 | |
parent | f1af081fc22290fd268922b2c4e7043750ab2f73 (diff) | |
download | aur-fc40ec009b8e30b439b90f8ebb821664c3b283f2.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | electron-netease-cloud-music.sh | 9 |
3 files changed, 11 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = electron-netease-cloud-music-bin pkgdesc = UNOFFICIAL client for music.163.com . Powered by Electron, Vue, and Muse-UI. pkgver = 0.9.38 - pkgrel = 6 + pkgrel = 7 url = https://dl.encm.cf/ arch = x86_64 license = GPL-3.0-only @@ -14,6 +14,6 @@ pkgbase = electron-netease-cloud-music-bin source = electron-netease-cloud-music.sh sha256sums = 9171b1858e8d5b4faef7c0be1cf786c3b824dec5ffe2a4014b1c8239e63cabcc sha256sums = af1edb0435906e7603db02b8622876fb462cbd1135d54c2d74a9c54b4f1c131d - sha256sums = 1d3f21d54a2d9d1a53661bd91c2afd00df79b0ce4057a66b4c953febfc464cd8 + sha256sums = 50b10386d13e5bec806aeb78f819c4edd0208a4d184332e53866c802731217fe pkgname = electron-netease-cloud-music-bin @@ -2,7 +2,7 @@ pkgname=electron-netease-cloud-music-bin pkgver=0.9.38 _electronversion=25 -pkgrel=6 +pkgrel=7 pkgdesc="UNOFFICIAL client for music.163.com . Powered by Electron, Vue, and Muse-UI." arch=('x86_64') url="https://dl.encm.cf/" @@ -23,13 +23,13 @@ source=( ) sha256sums=('9171b1858e8d5b4faef7c0be1cf786c3b824dec5ffe2a4014b1c8239e63cabcc' 'af1edb0435906e7603db02b8622876fb462cbd1135d54c2d74a9c54b4f1c131d' - '1d3f21d54a2d9d1a53661bd91c2afd00df79b0ce4057a66b4c953febfc464cd8') + '50b10386d13e5bec806aeb78f819c4edd0208a4d184332e53866c802731217fe') build() { sed -e "s|@electronversion@|${_electronversion}|g" \ -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 "AudioVideo" --name "${pkgname%-bin}" --exec "${pkgname%-bin} %U" + gendesk -q -f -n --categories="AudioVideo" --name="${pkgname%-bin}" --exec="${pkgname%-bin} %U" } package() { install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" diff --git a/electron-netease-cloud-music.sh b/electron-netease-cloud-music.sh index 0d20cddc70ca..86cb3dc6a9bf 100644 --- a/electron-netease-cloud-music.sh +++ b/electron-netease-cloud-music.sh @@ -1,14 +1,15 @@ -#!/bin/sh +#!/bin/bash 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 ELECTRON_FORCE_IS_PACKAGED=true export NODE_ENV=production cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron@electronversion@ "${_ASAR}" "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $? else - exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $? fi
\ No newline at end of file |