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:
parent
d3444b2e94
commit
1cbc044c85
2
.github/workflows/retrieve_version.sh
vendored
2
.github/workflows/retrieve_version.sh
vendored
@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# get version
|
# get version
|
||||||
VERSION=$(jq -r '.version' ./utility/version_info.json)
|
VERSION=$(jq -r '.ym.version' ./utility/version_info.json)
|
||||||
release_name="Beta $VERSION"
|
release_name="Beta $VERSION"
|
||||||
tag_name="v$VERSION"
|
tag_name="v$VERSION"
|
||||||
|
|
||||||
|
@ -95,10 +95,10 @@ TEMPDIR="$(mktemp -d)"
|
|||||||
trap clear EXIT
|
trap clear EXIT
|
||||||
|
|
||||||
#loading version info with jq
|
#loading version info with jq
|
||||||
version=$(jq -r '.version' ./utility/version_info.json)
|
version=$(jq -r '.ym.version' ./utility/version_info.json)
|
||||||
exe_name=$(jq -r '.exe_name' ./utility/version_info.json)
|
exe_name=$(jq -r '.ym.exe_name' ./utility/version_info.json)
|
||||||
exe_link=$(jq -r '.exe_link' ./utility/version_info.json)
|
exe_link=$(jq -r '.ym.exe_link' ./utility/version_info.json)
|
||||||
exe_sha256=$(jq -r '.exe_sha256' ./utility/version_info.json)
|
exe_sha256=$(jq -r '.ym.exe_sha256' ./utility/version_info.json)
|
||||||
|
|
||||||
#downloading exe
|
#downloading exe
|
||||||
echo "Downloading ${exe_name}"
|
echo "Downloading ${exe_name}"
|
||||||
|
@ -17,7 +17,7 @@ in
|
|||||||
stdenvNoCC.mkDerivation
|
stdenvNoCC.mkDerivation
|
||||||
{
|
{
|
||||||
name = "yandex-music";
|
name = "yandex-music";
|
||||||
inherit (version_info) version;
|
inherit (version_info.ym) version;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
p7zip
|
p7zip
|
||||||
@ -36,8 +36,8 @@ stdenvNoCC.mkDerivation
|
|||||||
then ymExe
|
then ymExe
|
||||||
else
|
else
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = version_info.exe_link;
|
url = version_info.ym.exe_link;
|
||||||
sha256 = version_info.exe_sha256;
|
sha256 = version_info.ym.exe_sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
|
@ -51,10 +51,12 @@ update_version() {
|
|||||||
|
|
||||||
cat > ./utility/version_info.json <<EOF
|
cat > ./utility/version_info.json <<EOF
|
||||||
{
|
{
|
||||||
"version": "$version",
|
"ym": {
|
||||||
"exe_name": "$exe_name",
|
"version": "$version",
|
||||||
"exe_link": "$exe_link",
|
"exe_name": "$exe_name",
|
||||||
"exe_sha256": "$exe_sha256"
|
"exe_link": "$exe_link",
|
||||||
|
"exe_sha256": "$exe_sha256"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": "5.0.11",
|
"ym": {
|
||||||
"exe_name": "Yandex_Music_x64_5.0.11.exe",
|
"version": "5.0.11",
|
||||||
"exe_link": "https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.11.exe",
|
"exe_name": "Yandex_Music_x64_5.0.11.exe",
|
||||||
"exe_sha256": "3f01b1ec7aba624100f705536f2103ffb4c62f5302889989e97e05bf94cb24e1"
|
"exe_link": "https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.11.exe",
|
||||||
|
"exe_sha256": "3f01b1ec7aba624100f705536f2103ffb4c62f5302889989e97e05bf94cb24e1"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user