mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
Reuse icon from sources
Change-Id: I5fb61daa29b4a2f1fb0074fc4ac9d4a9bf4a550b
This commit is contained in:
parent
46e9a0e494
commit
209cedb1ae
@ -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"
|
||||
|
@ -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"
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 544 B |
Loading…
Reference in New Issue
Block a user