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

Utility folder

This commit is contained in:
Andrey Onishchenko 2024-02-09 15:07:50 +03:00
parent 18145ed163
commit a28db76a6b
8 changed files with 11 additions and 11 deletions

View File

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

View File

@ -16,7 +16,7 @@ case $OS in
"Arch Linux") "Arch Linux")
echo "Arch Linux" echo "Arch Linux"
pacman -S --noconfirm git sudo base-devel jq nix pacman -S --noconfirm git sudo base-devel jq nix
sh ./generate_packages.sh sh ./utility/generate_packages.sh
git config --global --add safe.directory "*" git config --global --add safe.directory "*"
;; ;;
*) *)

View File

@ -92,7 +92,7 @@ In addition you will need to install [Asar](https://github.com/electron/asar) to
npm install -g @electron/asar 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.
*** ***

View File

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

View File

@ -12,7 +12,7 @@
, fixQuit ? true , fixQuit ? true
}: }:
let let
version_info = with builtins; fromJSON (readFile ../version_info.json); version_info = with builtins; fromJSON (readFile ../utility/version_info.json);
in in
stdenvNoCC.mkDerivation stdenvNoCC.mkDerivation
{ {

View File

@ -9,7 +9,7 @@ let
in in
runCommand "generate_config" runCommand "generate_config"
{ {
src = ../generate_packages.sh; src = ../utility/generate_packages.sh;
name = "generate_packages"; name = "generate_packages";
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper makeWrapper

View File

@ -47,9 +47,9 @@ load_current_version() {
} }
update_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", "version": "$version",
"exe_name": "$exe_name", "exe_name": "$exe_name",