diff --git a/repack.sh b/repack.sh index 16dd3b3..66e7584 100755 --- a/repack.sh +++ b/repack.sh @@ -59,7 +59,7 @@ rm -rf "$EXTRACTED" mv "$EXTRACTED/resources/app.asar" "$TEMPDIR/app.asar" rm -rf "$EXTRACTED" rm "$TEMPDIR/app-64.7z" -asar extract "$TEMPDIR/app.asar" "$TEMPDIR/app" +npx asar extract "$TEMPDIR/app.asar" "$TEMPDIR/app" rm "$TEMPDIR/app.asar" curdir="$PWD" @@ -111,7 +111,7 @@ mkdir -p "$dst" echo "Packing" cd "$curdir" -asar pack "$TEMPDIR/app" "$dst/yandexmusic.asar" +npx asar pack "$TEMPDIR/app" "$dst/yandexmusic.asar" for ext in png svg; do mv "$TEMPDIR/app/build/next-desktop/favicon.$ext" "$dst" done diff --git a/templates/PKGBUILD b/templates/PKGBUILD index f20c40c..18cb91b 100644 --- a/templates/PKGBUILD +++ b/templates/PKGBUILD @@ -8,13 +8,13 @@ arch=("any") url="https://github.com/cucumber-sp/yandex-music-linux" license=("custom") depends=("electron" "libpulse" "xdg-utils") -makedepends=("p7zip" "nodejs" "jq") +makedepends=("p7zip" "nodejs" "npm" "jq") source=("%exe_link%" "git+https://github.com/cucumber-sp/yandex-music-linux") sha256sums=("%exe_sha256%" "SKIP") prepare() { - npm install @electron/asar; + npm install @electron/asar } build() {