0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-24 14:34:39 +03:00

some updates for arch

This commit is contained in:
Andrey Onishchenko 2024-01-30 18:07:57 +03:00
parent 2beeafb407
commit 8fd5911e07
4 changed files with 16 additions and 20 deletions

View File

@ -10,15 +10,15 @@ license=("custom")
depends=("electron" "libpulse") depends=("electron" "libpulse")
makedepends=("p7zip" "nodejs" "jq") makedepends=("p7zip" "nodejs" "jq")
source=("https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.8.exe") source=("https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.8.exe" "git+https://github.com/cucumber-sp/yandex-music-linux")
sha256sums=("78b4e1acb61becbbddeb6f48e9d2b55ed7d718cd99c205b89a94f7c3af9df803") sha256sums=("78b4e1acb61becbbddeb6f48e9d2b55ed7d718cd99c205b89a94f7c3af9df803" "SKIP")
prepare() { prepare() {
npm install @electron/asar; npm install @electron/asar;
} }
build() { build() {
sh "$srcdir/repack.sh" "Yandex_Music_x64_5.0.8.exe" sh "$srcdir/yandex-music-linux/repack.sh" "$srcdir/Yandex_Music_x64_5.0.8.exe"
} }
package() { package() {
@ -26,10 +26,10 @@ package() {
mkdir -p "$pkgdir/usr/share/applications" mkdir -p "$pkgdir/usr/share/applications"
mkdir -p "$pkgdir/usr/bin" mkdir -p "$pkgdir/usr/bin"
install -Dm644 "$srcdir/out/yandexmusic.asar" "$pkgdir/usr/lib/yandexmusic/yandexmusic.asar" install -Dm644 "$srcdir/yandex-music-linux/out/yandexmusic.asar" "$pkgdir/usr/lib/yandexmusic/yandexmusic.asar"
install -Dm644 "$srcdir/out/yandexmusic.desktop" "$pkgdir/usr/share/applications/yandexmusic.desktop" install -Dm644 "$srcdir/yandex-music-linux/templates/desktop" "$pkgdir/usr/share/applications/yandexmusic.desktop"
install -Dm644 "$srcdir/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 "$srcdir/yandex-music-linux/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$srcdir/templates/icon.png" "$pkgdir/usr/share/pixmaps/yandexmusic.png" install -Dm644 "$srcdir/yandex-music-linux/templates/icon.png" "$pkgdir/usr/share/pixmaps/yandexmusic.png"
# Create a script to launch the app with Electron # Create a script to launch the app with Electron
echo "#!/bin/sh" > "$pkgdir/usr/bin/yandexmusic" echo "#!/bin/sh" > "$pkgdir/usr/bin/yandexmusic"

View File

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
rm -rf ./tmp mkdir -p ./tmp
mkdir ./tmp
# loading json from file https://music-desktop-application.s3.yandex.net/stable/download.json # loading json from file https://music-desktop-application.s3.yandex.net/stable/download.json
curl -s https://music-desktop-application.s3.yandex.net/stable/download.json > ./tmp/download.json curl -s https://music-desktop-application.s3.yandex.net/stable/download.json > ./tmp/download.json

View File

@ -116,6 +116,3 @@ asar pack "./app" "./out/yandexmusic.asar"
rm -rf ./app rm -rf ./app
echo "Done" echo "Done"
cp "./LICENSE.md" "./out/LICENSE.md"
cp "./templates/desktop" "./out/yandexmusic.desktop"

View File

@ -10,15 +10,15 @@ license=("custom")
depends=("electron" "libpulse") depends=("electron" "libpulse")
makedepends=("p7zip" "nodejs" "jq") makedepends=("p7zip" "nodejs" "jq")
source=("%exe_link%") source=("%exe_link%" "git+https://github.com/cucumber-sp/yandex-music-linux")
sha256sums=("%exe_sha256%") sha256sums=("%exe_sha256%" "SKIP")
prepare() { prepare() {
npm install @electron/asar; npm install @electron/asar;
} }
build() { build() {
sh "$srcdir/repack.sh" "%exe_name%" sh "$srcdir/yandex-music-linux/repack.sh" "$srcdir/%exe_name%"
} }
package() { package() {
@ -26,10 +26,10 @@ package() {
mkdir -p "$pkgdir/usr/share/applications" mkdir -p "$pkgdir/usr/share/applications"
mkdir -p "$pkgdir/usr/bin" mkdir -p "$pkgdir/usr/bin"
install -Dm644 "$srcdir/out/yandexmusic.asar" "$pkgdir/usr/lib/yandexmusic/yandexmusic.asar" install -Dm644 "$srcdir/yandex-music-linux/out/yandexmusic.asar" "$pkgdir/usr/lib/yandexmusic/yandexmusic.asar"
install -Dm644 "$srcdir/out/yandexmusic.desktop" "$pkgdir/usr/share/applications/yandexmusic.desktop" install -Dm644 "$srcdir/yandex-music-linux/templates/desktop" "$pkgdir/usr/share/applications/yandexmusic.desktop"
install -Dm644 "$srcdir/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 "$srcdir/yandex-music-linux/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$srcdir/templates/icon.png" "$pkgdir/usr/share/pixmaps/yandexmusic.png" install -Dm644 "$srcdir/yandex-music-linux/templates/icon.png" "$pkgdir/usr/share/pixmaps/yandexmusic.png"
# Create a script to launch the app with Electron # Create a script to launch the app with Electron
echo "#!/bin/sh" > "$pkgdir/usr/bin/yandexmusic" echo "#!/bin/sh" > "$pkgdir/usr/bin/yandexmusic"