diff options
author | zxp19821005 | 2024-03-04 20:17:49 +0800 |
---|---|---|
committer | zxp19821005 | 2024-03-04 20:17:49 +0800 |
commit | 62d19031fdaad72e9f8f25d1bed54085b794eedf (patch) | |
tree | 9de9820456126ad4d8286e31d0c06bfccc3d23b2 | |
parent | a60c50ef417f4e06736bcaf1ab6830ffcccffcb6 (diff) | |
download | aur-62d19031fdaad72e9f8f25d1bed54085b794eedf.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | electron-youtube-music.sh | 9 |
3 files changed, 11 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = electron-youtube-music-bin pkgdesc = A minimal electron app for Youtube Music pkgver = 1.0.1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/pauchiner/electron-youtube-music arch = x86_64 license = MIT @@ -11,6 +11,6 @@ pkgbase = electron-youtube-music-bin source = electron-youtube-music-1.0.1.deb::https://github.com/pauchiner/electron-youtube-music/releases/download/v1.0.1/linux.deb source = electron-youtube-music.sh sha256sums = 8eeb09da838987efb24cfe0ded0c078457ee8399bed5dacdcff447c96d61f20c - sha256sums = 1d3f21d54a2d9d1a53661bd91c2afd00df79b0ce4057a66b4c953febfc464cd8 + sha256sums = 50b10386d13e5bec806aeb78f819c4edd0208a4d184332e53866c802731217fe pkgname = electron-youtube-music-bin @@ -4,7 +4,7 @@ pkgname="electron-${_appname}-bin" _pkgname="Youtube Music" pkgver=1.0.1 _electronversion=28 -pkgrel=1 +pkgrel=2 pkgdesc="A minimal electron app for Youtube Music" arch=('x86_64') url="https://github.com/pauchiner/electron-youtube-music" @@ -19,13 +19,13 @@ source=( "${pkgname%-bin}.sh" ) sha256sums=('8eeb09da838987efb24cfe0ded0c078457ee8399bed5dacdcff447c96d61f20c' - '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" - bsdtar -xf "${srcdir}/data.tar.xz" + bsdtar -xf "${srcdir}/data."* sed "s|\"/opt/${_pkgname}/${_appname}\"|${pkgname%-bin}|g;s|=${_appname}|=${pkgname%-bin}|g;s|Music;|AudioVideo;|g" \ -i "${srcdir}/usr/share/applications/${_appname}.desktop" } diff --git a/electron-youtube-music.sh b/electron-youtube-music.sh index 0d20cddc70ca..86cb3dc6a9bf 100644 --- a/electron-youtube-music.sh +++ b/electron-youtube-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 |