diff --git a/repack.sh b/repack.sh index 14c7ca1..eddff1b 100755 --- a/repack.sh +++ b/repack.sh @@ -106,5 +106,8 @@ mkdir -p "$dst" echo "Packing" cd "$curdir" asar pack "$TEMPDIR/app" "$dst/yandexmusic.asar" +for ext in png svg; do + mv "$TEMPDIR/app/build/next-desktop/favicon.$ext" "$dst" +done echo "Done" diff --git a/templates/PKGBUILD b/templates/PKGBUILD index d61bc9e..911b10d 100644 --- a/templates/PKGBUILD +++ b/templates/PKGBUILD @@ -27,12 +27,12 @@ package() { mkdir -p "$pkgdir/usr/bin" install -Dm644 "$srcdir/out/yandexmusic.asar" "$pkgdir/usr/lib/yandexmusic/yandexmusic.asar" + install -Dm644 "$srcdir/out/favicon.png" "$pkgdir/usr/share/pixmaps/yandexmusic.png" install -Dm644 "$srcdir/yandex-music-linux/templates/desktop" "$pkgdir/usr/share/applications/yandexmusic.desktop" install -Dm644 "$srcdir/yandex-music-linux/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - install -Dm644 "$srcdir/yandex-music-linux/templates/icon.png" "$pkgdir/usr/share/pixmaps/yandexmusic.png" # Create a script to launch the app with Electron echo "#!/bin/sh" > "$pkgdir/usr/bin/yandexmusic" - echo "electron /usr/lib/yandexmusic/yandexmusic.asar" >> "$pkgdir/usr/bin/yandexmusic" + echo 'exec electron /usr/lib/yandexmusic/yandexmusic.asar "$@"' >> "$pkgdir/usr/bin/yandexmusic" chmod 755 "$pkgdir/usr/bin/yandexmusic" } diff --git a/templates/icon.png b/templates/icon.png deleted file mode 100644 index 09c94c6..0000000 Binary files a/templates/icon.png and /dev/null differ