From 6e4d55670d251bb53d82169468d40bdad799f714 Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Mon, 11 Mar 2024 15:34:33 +0300 Subject: [PATCH] Update electron to 29 --- .github/workflows/build.yml | 2 +- PKGBUILD | 4 ++-- templates/PKGBUILD | 4 ++-- utility/update_version.py | 2 +- utility/version_info.json | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e286be9..de8be1a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: image: archlinux:latest steps: - 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 uses: actions/checkout@v4 with: diff --git a/PKGBUILD b/PKGBUILD index f7d4d09..b764805 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,7 +7,7 @@ pkgdesc="Yandex Music - Personal recommendations, selections for any occasion an arch=("any") url="https://github.com/cucumber-sp/yandex-music-linux" license=("custom") -depends=("electron27" "libpulse" "xdg-utils") +depends=("electron29" "libpulse" "xdg-utils") 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") @@ -33,6 +33,6 @@ package() { # Create a script to launch the app with Electron 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" } diff --git a/templates/PKGBUILD b/templates/PKGBUILD index c536739..d90001a 100644 --- a/templates/PKGBUILD +++ b/templates/PKGBUILD @@ -7,7 +7,7 @@ pkgdesc="Yandex Music - Personal recommendations, selections for any occasion an arch=("any") url="https://github.com/cucumber-sp/yandex-music-linux" license=("custom") -depends=("electron27" "libpulse" "xdg-utils") +depends=("electron29" "libpulse" "xdg-utils") makedepends=("p7zip" "nodejs" "asar" "jq" "python") 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 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" } diff --git a/utility/update_version.py b/utility/update_version.py index 9047284..4148cbb 100644 --- a/utility/update_version.py +++ b/utility/update_version.py @@ -46,7 +46,7 @@ print(f"Sha256: {exe_sha256}") print("Getting latest electron version") electron_releases = requests.get(ELECTRON_VERSIONS_URL).json() 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] print(f"Latest electron version: {electron_version}") electron_x64 = ELECTRON_DOWNLOAD_URL.format(electron_version, "x64") diff --git a/utility/version_info.json b/utility/version_info.json index c7d3413..aadbd85 100644 --- a/utility/version_info.json +++ b/utility/version_info.json @@ -6,9 +6,9 @@ "exe_sha256": "c10c6c4b5d596f9bf490a231d7c13bbd2627109f71c9c57aa4e2b034e31252f4" }, "electron": { - "version": "27.3.5", - "x64": "https://github.com/electron/electron/releases/download/v27.3.5/electron-v27.3.5-linux-x64.zip", - "armv7l": "https://github.com/electron/electron/releases/download/v27.3.5/electron-v27.3.5-linux-armv7l.zip", - "arm64": "https://github.com/electron/electron/releases/download/v27.3.5/electron-v27.3.5-linux-arm64.zip" + "version": "29.1.1", + "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/v29.1.1/electron-v29.1.1-linux-armv7l.zip", + "arm64": "https://github.com/electron/electron/releases/download/v29.1.1/electron-v29.1.1-linux-arm64.zip" } } \ No newline at end of file