mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-24 14:34:39 +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
|
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"
|
||||||
|
|
||||||
|
2
.github/workflows/update_packages.sh
vendored
2
.github/workflows/update_packages.sh
vendored
@ -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 "*"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -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.
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
|
@ -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",
|
Loading…
Reference in New Issue
Block a user