0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00

Arch build fix

This commit is contained in:
Andrey Onishchenko 2024-02-08 14:51:45 +03:00
parent 9c0103c2c8
commit 7457b00651
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ rm -rf "$EXTRACTED"
mv "$EXTRACTED/resources/app.asar" "$TEMPDIR/app.asar" mv "$EXTRACTED/resources/app.asar" "$TEMPDIR/app.asar"
rm -rf "$EXTRACTED" rm -rf "$EXTRACTED"
rm "$TEMPDIR/app-64.7z" rm "$TEMPDIR/app-64.7z"
asar extract "$TEMPDIR/app.asar" "$TEMPDIR/app" npx asar extract "$TEMPDIR/app.asar" "$TEMPDIR/app"
rm "$TEMPDIR/app.asar" rm "$TEMPDIR/app.asar"
curdir="$PWD" curdir="$PWD"
@ -111,7 +111,7 @@ mkdir -p "$dst"
echo "Packing" echo "Packing"
cd "$curdir" cd "$curdir"
asar pack "$TEMPDIR/app" "$dst/yandexmusic.asar" npx asar pack "$TEMPDIR/app" "$dst/yandexmusic.asar"
for ext in png svg; do for ext in png svg; do
mv "$TEMPDIR/app/build/next-desktop/favicon.$ext" "$dst" mv "$TEMPDIR/app/build/next-desktop/favicon.$ext" "$dst"
done done

View File

@ -8,13 +8,13 @@ arch=("any")
url="https://github.com/cucumber-sp/yandex-music-linux" url="https://github.com/cucumber-sp/yandex-music-linux"
license=("custom") license=("custom")
depends=("electron" "libpulse" "xdg-utils") 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") source=("%exe_link%" "git+https://github.com/cucumber-sp/yandex-music-linux")
sha256sums=("%exe_sha256%" "SKIP") sha256sums=("%exe_sha256%" "SKIP")
prepare() { prepare() {
npm install @electron/asar; npm install @electron/asar
} }
build() { build() {