From 44ca688869bcbddbd14b7b2267198223a5b22e26 Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Tue, 24 Sep 2024 02:04:05 +0300 Subject: [PATCH] Update electron version to 32 --- PKGBUILD | 4 ++-- templates/PKGBUILD | 4 ++-- utility/update_version.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 95826f7..5d847f7 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=("Unlicense") -depends=("electron29" "libpulse" "xdg-utils" "bash" "hicolor-icon-theme") +depends=("electron32" "libpulse" "xdg-utils" "bash" "hicolor-icon-theme") makedepends=("p7zip" "nodejs" "asar" "jq" "python" "git") source=("https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.18.2.exe" "git+${url}#tag=v${pkgver}") @@ -35,6 +35,6 @@ package() { install -Dm644 "$srcdir/yandex-music-linux/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm755 "$srcdir/yandex-music-linux/templates/yandex-music.sh" "$pkgdir/usr/bin/yandex-music" - sed -i "s|%electron_path%|/usr/bin/electron29|g" "$pkgdir/usr/bin/yandex-music" + sed -i "s|%electron_path%|/usr/bin/electron32|g" "$pkgdir/usr/bin/yandex-music" sed -i "s|%asar_path%|/usr/lib/yandex-music/yandex-music.asar|g" "$pkgdir/usr/bin/yandex-music" } diff --git a/templates/PKGBUILD b/templates/PKGBUILD index 537c2a4..09a7a11 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=("Unlicense") -depends=("electron29" "libpulse" "xdg-utils" "bash" "hicolor-icon-theme") +depends=("electron32" "libpulse" "xdg-utils" "bash" "hicolor-icon-theme") makedepends=("p7zip" "nodejs" "asar" "jq" "python" "git") source=("%exe_link%" "git+${url}#tag=v${pkgver}") @@ -35,6 +35,6 @@ package() { install -Dm644 "$srcdir/yandex-music-linux/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm755 "$srcdir/yandex-music-linux/templates/yandex-music.sh" "$pkgdir/usr/bin/yandex-music" - sed -i "s|%electron_path%|/usr/bin/electron29|g" "$pkgdir/usr/bin/yandex-music" + sed -i "s|%electron_path%|/usr/bin/electron32|g" "$pkgdir/usr/bin/yandex-music" sed -i "s|%asar_path%|/usr/lib/yandex-music/yandex-music.asar|g" "$pkgdir/usr/bin/yandex-music" } diff --git a/utility/update_version.py b/utility/update_version.py index e3fb4bb..c2e4f0c 100644 --- a/utility/update_version.py +++ b/utility/update_version.py @@ -51,7 +51,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("29"), electron_versions)) +electron_versions = list(filter(lambda x: "-" not in x and x.startswith("32"), electron_versions)) electron_version = electron_versions[0] print(f"Latest electron version: {electron_version}") electron_x64 = ELECTRON_DOWNLOAD_URL.format(electron_version, "x64")