mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 14:12:59 +03:00
Utility folder
This commit is contained in:
parent
18145ed163
commit
a28db76a6b
2
.github/workflows/retrieve_version.sh
vendored
2
.github/workflows/retrieve_version.sh
vendored
@ -3,7 +3,7 @@
|
||||
set -e
|
||||
|
||||
# get version
|
||||
VERSION=$(jq -r '.version' version_info.json)
|
||||
VERSION=$(jq -r '.version' ./utility/version_info.json)
|
||||
release_name="Beta $VERSION"
|
||||
tag_name="v$VERSION"
|
||||
|
||||
|
2
.github/workflows/update_packages.sh
vendored
2
.github/workflows/update_packages.sh
vendored
@ -16,7 +16,7 @@ case $OS in
|
||||
"Arch Linux")
|
||||
echo "Arch Linux"
|
||||
pacman -S --noconfirm git sudo base-devel jq nix
|
||||
sh ./generate_packages.sh
|
||||
sh ./utility/generate_packages.sh
|
||||
git config --global --add safe.directory "*"
|
||||
;;
|
||||
*)
|
||||
|
@ -92,7 +92,7 @@ In addition you will need to install [Asar](https://github.com/electron/asar) to
|
||||
npm install -g @electron/asar
|
||||
```
|
||||
|
||||
Last step is to download original client `.exe` file. You can get it yourself or take link to the latest version from `version_info.json` file.
|
||||
Last step is to download original client `.exe` file. You can get it yourself or take link to the latest version from `./utility/version_info.json` file.
|
||||
|
||||
***
|
||||
|
||||
|
@ -60,10 +60,10 @@ TEMPDIR="$(mktemp -d)"
|
||||
trap clear EXIT
|
||||
|
||||
#loading version info with jq
|
||||
version=$(jq -r '.version' version_info.json)
|
||||
exe_name=$(jq -r '.exe_name' version_info.json)
|
||||
exe_link=$(jq -r '.exe_link' version_info.json)
|
||||
exe_sha256=$(jq -r '.exe_sha256' version_info.json)
|
||||
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)
|
||||
|
||||
#downloading exe
|
||||
echo "Downloading $exe_name"
|
||||
|
@ -12,7 +12,7 @@
|
||||
, fixQuit ? true
|
||||
}:
|
||||
let
|
||||
version_info = with builtins; fromJSON (readFile ../version_info.json);
|
||||
version_info = with builtins; fromJSON (readFile ../utility/version_info.json);
|
||||
in
|
||||
stdenvNoCC.mkDerivation
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ let
|
||||
in
|
||||
runCommand "generate_config"
|
||||
{
|
||||
src = ../generate_packages.sh;
|
||||
src = ../utility/generate_packages.sh;
|
||||
name = "generate_packages";
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
|
@ -47,9 +47,9 @@ load_current_version() {
|
||||
}
|
||||
|
||||
update_version() {
|
||||
rm -rf ./version_info.json
|
||||
rm -rf ./utility/version_info.json
|
||||
|
||||
cat > ./version_info.json <<EOF
|
||||
cat > ./utility/version_info.json <<EOF
|
||||
{
|
||||
"version": "$version",
|
||||
"exe_name": "$exe_name",
|
Loading…
Reference in New Issue
Block a user