mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2025-09-28 01:29:03 +03:00
Swtiched to .asar + PKGBUILD generation
This commit is contained in:
27
templates/PKGBUILD
Normal file
27
templates/PKGBUILD
Normal file
@@ -0,0 +1,27 @@
|
||||
pkgname=yandexmusic
|
||||
pkgver=%version%
|
||||
pkgrel=1
|
||||
pkgdesc="Yandex Music Client"
|
||||
arch=('any')
|
||||
url="https://github.com/cucumber-sp/yandex-music-linux"
|
||||
license=('custom')
|
||||
depends=('electron' 'libpulse')
|
||||
|
||||
source=('./yandexmusic.asar' './yandexmusic.desktop' './LICENSE.md')
|
||||
sha256sums=('%asar_hash%' '%desktop_hash%' 'SKIP')
|
||||
|
||||
package() {
|
||||
|
||||
mkdir -p "$pkgdir/usr/lib/yandexmusic"
|
||||
mkdir -p "$pkgdir/usr/share/applications"
|
||||
mkdir -p "$pkgdir/usr/bin"
|
||||
|
||||
install -Dm644 "$srcdir/yandexmusic.asar" "$pkgdir/usr/lib/yandexmusic/yandexmusic.asar"
|
||||
install -Dm644 "$srcdir/yandexmusic.desktop" "$pkgdir/usr/share/applications/yandexmusic.desktop"
|
||||
install -Dm644 "$srcdir/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
||||
# 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"
|
||||
chmod 755 "$pkgdir/usr/bin/yandexmusic"
|
||||
}
|
11
templates/desktop
Normal file
11
templates/desktop
Normal file
@@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Name=Yandex Music
|
||||
Name[ru]=Яндекс Музыка
|
||||
Comment=Yandex Music — we collect music for you
|
||||
Comment[ru]=Яндекс Музыка — собираем музыку для вас
|
||||
GenericName=YandexMusic
|
||||
Exec=<%= name %> %U<% if (execArguments && execArguments.length) { %> <%= execArguments.join(' ') %><% } %>
|
||||
Icon=YandexMusic
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
Categories=Audio;Music;Player;AudioVideo
|
Reference in New Issue
Block a user