0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00

Update electron to 29

This commit is contained in:
Andrey Onishchenko 2024-03-11 15:34:33 +03:00
parent 19360d7fa1
commit 6e4d55670d
5 changed files with 10 additions and 10 deletions

View File

@ -22,7 +22,7 @@ jobs:
image: archlinux:latest image: archlinux:latest
steps: steps:
- name: Install packages - name: Install packages
run: pacman -Syy --noconfirm && pacman -S --noconfirm git sudo base-devel p7zip nodejs jq asar electron27 libpulse dpkg unzip xdg-utils python rpm-tools run: pacman -Syy --noconfirm && pacman -S --noconfirm git sudo base-devel p7zip nodejs jq asar electron29 libpulse dpkg unzip xdg-utils python rpm-tools
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:

View File

@ -7,7 +7,7 @@ pkgdesc="Yandex Music - Personal recommendations, selections for any occasion an
arch=("any") arch=("any")
url="https://github.com/cucumber-sp/yandex-music-linux" url="https://github.com/cucumber-sp/yandex-music-linux"
license=("custom") license=("custom")
depends=("electron27" "libpulse" "xdg-utils") depends=("electron29" "libpulse" "xdg-utils")
makedepends=("p7zip" "nodejs" "asar" "jq" "python") makedepends=("p7zip" "nodejs" "asar" "jq" "python")
source=("https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.14.exe" "git+https://github.com/cucumber-sp/yandex-music-linux") source=("https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.14.exe" "git+https://github.com/cucumber-sp/yandex-music-linux")
@ -33,6 +33,6 @@ package() {
# Create a script to launch the app with Electron # Create a script to launch the app with Electron
echo "#!/bin/sh" > "$pkgdir/usr/bin/yandex-music" echo "#!/bin/sh" > "$pkgdir/usr/bin/yandex-music"
echo 'exec electron27 /usr/lib/yandex-music/yandex-music.asar "$@"' >> "$pkgdir/usr/bin/yandex-music" echo 'exec electron29 /usr/lib/yandex-music/yandex-music.asar "$@"' >> "$pkgdir/usr/bin/yandex-music"
chmod 755 "$pkgdir/usr/bin/yandex-music" chmod 755 "$pkgdir/usr/bin/yandex-music"
} }

View File

@ -7,7 +7,7 @@ pkgdesc="Yandex Music - Personal recommendations, selections for any occasion an
arch=("any") arch=("any")
url="https://github.com/cucumber-sp/yandex-music-linux" url="https://github.com/cucumber-sp/yandex-music-linux"
license=("custom") license=("custom")
depends=("electron27" "libpulse" "xdg-utils") depends=("electron29" "libpulse" "xdg-utils")
makedepends=("p7zip" "nodejs" "asar" "jq" "python") makedepends=("p7zip" "nodejs" "asar" "jq" "python")
source=("%exe_link%" "git+https://github.com/cucumber-sp/yandex-music-linux") source=("%exe_link%" "git+https://github.com/cucumber-sp/yandex-music-linux")
@ -33,6 +33,6 @@ package() {
# Create a script to launch the app with Electron # Create a script to launch the app with Electron
echo "#!/bin/sh" > "$pkgdir/usr/bin/yandex-music" echo "#!/bin/sh" > "$pkgdir/usr/bin/yandex-music"
echo 'exec electron27 /usr/lib/yandex-music/yandex-music.asar "$@"' >> "$pkgdir/usr/bin/yandex-music" echo 'exec electron29 /usr/lib/yandex-music/yandex-music.asar "$@"' >> "$pkgdir/usr/bin/yandex-music"
chmod 755 "$pkgdir/usr/bin/yandex-music" chmod 755 "$pkgdir/usr/bin/yandex-music"
} }

View File

@ -46,7 +46,7 @@ print(f"Sha256: {exe_sha256}")
print("Getting latest electron version") print("Getting latest electron version")
electron_releases = requests.get(ELECTRON_VERSIONS_URL).json() electron_releases = requests.get(ELECTRON_VERSIONS_URL).json()
electron_versions = list(map(lambda x: x["version"], electron_releases)) electron_versions = list(map(lambda x: x["version"], electron_releases))
electron_versions = list(filter(lambda x: "-" not in x and x.startswith("27"), electron_versions)) electron_versions = list(filter(lambda x: "-" not in x and x.startswith("29"), electron_versions))
electron_version = electron_versions[0] electron_version = electron_versions[0]
print(f"Latest electron version: {electron_version}") print(f"Latest electron version: {electron_version}")
electron_x64 = ELECTRON_DOWNLOAD_URL.format(electron_version, "x64") electron_x64 = ELECTRON_DOWNLOAD_URL.format(electron_version, "x64")

View File

@ -6,9 +6,9 @@
"exe_sha256": "c10c6c4b5d596f9bf490a231d7c13bbd2627109f71c9c57aa4e2b034e31252f4" "exe_sha256": "c10c6c4b5d596f9bf490a231d7c13bbd2627109f71c9c57aa4e2b034e31252f4"
}, },
"electron": { "electron": {
"version": "27.3.5", "version": "29.1.1",
"x64": "https://github.com/electron/electron/releases/download/v27.3.5/electron-v27.3.5-linux-x64.zip", "x64": "https://github.com/electron/electron/releases/download/v29.1.1/electron-v29.1.1-linux-x64.zip",
"armv7l": "https://github.com/electron/electron/releases/download/v27.3.5/electron-v27.3.5-linux-armv7l.zip", "armv7l": "https://github.com/electron/electron/releases/download/v29.1.1/electron-v29.1.1-linux-armv7l.zip",
"arm64": "https://github.com/electron/electron/releases/download/v27.3.5/electron-v27.3.5-linux-arm64.zip" "arm64": "https://github.com/electron/electron/releases/download/v29.1.1/electron-v29.1.1-linux-arm64.zip"
} }
} }