summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorzxp198210052024-03-01 10:58:14 +0800
committerzxp198210052024-03-01 10:58:14 +0800
commitfc40ec009b8e30b439b90f8ebb821664c3b283f2 (patch)
treee84bba98a6cc1ef0f997334ce3ca511aaca7e3a0
parentf1af081fc22290fd268922b2c4e7043750ab2f73 (diff)
downloadaur-fc40ec009b8e30b439b90f8ebb821664c3b283f2.tar.gz
fix errors
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
-rw-r--r--electron-netease-cloud-music.sh9
3 files changed, 11 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3a72b3c372c3..52002a1e4df5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 1a32f274d418..3a9affaea7c7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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