From 2cd25580a4778dbfac768a18ad9033a3c24edf94 Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Tue, 20 Feb 2024 16:16:50 +0300 Subject: [PATCH] Feature: SVG Icons --- build_deb.sh | 4 ++++ templates/PKGBUILD | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/build_deb.sh b/build_deb.sh index e0e0f81..e327517 100755 --- a/build_deb.sh +++ b/build_deb.sh @@ -36,7 +36,11 @@ build_deb(){ mkdir -p "${pkgdir}/usr/bin" install -Dm644 "${TEMPDIR}/app/yandex-music.asar" "${pkgdir}/usr/lib/yandex-music/yandex-music.asar" + install -Dm644 "${TEMPDIR}/app/favicon.png" "${pkgdir}/usr/share/pixmaps/yandex-music.png" + install -Dm644 "${TEMPDIR}/app/favicon.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/yandex-music.png" + install -Dm644 "${TEMPDIR}/app/favicon.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/yandex-music.svg" + install -Dm644 "./templates/desktop" "${pkgdir}/usr/share/applications/yandex-music.desktop" install -Dm644 "./LICENSE.md" "${pkgdir}/usr/share/licenses/yandex-music/LICENSE" mv "${TEMPDIR}/electron-${arch}/" "${pkgdir}/usr/lib/yandex-music/electron" diff --git a/templates/PKGBUILD b/templates/PKGBUILD index 9fc5004..5859f91 100644 --- a/templates/PKGBUILD +++ b/templates/PKGBUILD @@ -23,7 +23,11 @@ package() { mkdir -p "$pkgdir/usr/bin" install -Dm644 "$srcdir/app/yandex-music.asar" "$pkgdir/usr/lib/yandex-music/yandex-music.asar" + install -Dm644 "$srcdir/app/favicon.png" "$pkgdir/usr/share/pixmaps/yandex-music.png" + install -Dm644 "$srcdir/app/favicon.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/yandex-music.png" + install -Dm644 "$srcdir/app/favicon.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/yandex-music.svg" + install -Dm644 "$srcdir/yandex-music-linux/templates/desktop" "$pkgdir/usr/share/applications/yandex-music.desktop" install -Dm644 "$srcdir/yandex-music-linux/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"