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

version_info format change

nix fix
This commit is contained in:
Andrey Onishchenko 2024-02-18 21:00:32 +03:00
parent d3444b2e94
commit 1cbc044c85
5 changed files with 20 additions and 16 deletions

View File

@ -3,7 +3,7 @@
set -e
# get version
VERSION=$(jq -r '.version' ./utility/version_info.json)
VERSION=$(jq -r '.ym.version' ./utility/version_info.json)
release_name="Beta $VERSION"
tag_name="v$VERSION"

View File

@ -95,10 +95,10 @@ TEMPDIR="$(mktemp -d)"
trap clear EXIT
#loading version info with jq
version=$(jq -r '.version' ./utility/version_info.json)
exe_name=$(jq -r '.exe_name' ./utility/version_info.json)
exe_link=$(jq -r '.exe_link' ./utility/version_info.json)
exe_sha256=$(jq -r '.exe_sha256' ./utility/version_info.json)
version=$(jq -r '.ym.version' ./utility/version_info.json)
exe_name=$(jq -r '.ym.exe_name' ./utility/version_info.json)
exe_link=$(jq -r '.ym.exe_link' ./utility/version_info.json)
exe_sha256=$(jq -r '.ym.exe_sha256' ./utility/version_info.json)
#downloading exe
echo "Downloading ${exe_name}"

View File

@ -17,7 +17,7 @@ in
stdenvNoCC.mkDerivation
{
name = "yandex-music";
inherit (version_info) version;
inherit (version_info.ym) version;
nativeBuildInputs = [
p7zip
@ -36,8 +36,8 @@ stdenvNoCC.mkDerivation
then ymExe
else
fetchurl {
url = version_info.exe_link;
sha256 = version_info.exe_sha256;
url = version_info.ym.exe_link;
sha256 = version_info.ym.exe_sha256;
};
unpackPhase = ''

View File

@ -51,11 +51,13 @@ update_version() {
cat > ./utility/version_info.json <<EOF
{
"ym": {
"version": "$version",
"exe_name": "$exe_name",
"exe_link": "$exe_link",
"exe_sha256": "$exe_sha256"
}
}
EOF
}

View File

@ -1,6 +1,8 @@
{
"ym": {
"version": "5.0.11",
"exe_name": "Yandex_Music_x64_5.0.11.exe",
"exe_link": "https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.11.exe",
"exe_sha256": "3f01b1ec7aba624100f705536f2103ffb4c62f5302889989e97e05bf94cb24e1"
}
}