0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-01-11 22:41:03 +03:00

Remove unnecessary code for disabling close patch

Change-Id: Ic27eac6c5c7f78353e105ec09fc1477c33b9a089
This commit is contained in:
Yury Shvedov 2024-02-11 15:07:39 +03:00
parent bea5319901
commit 237261c386
4 changed files with 2 additions and 11 deletions

View File

@ -66,8 +66,6 @@ jobs:
- name: Build yandexmusic - name: Build yandexmusic
run: nix build --impure .#yandexmusic run: nix build --impure .#yandexmusic
- name: Build yandexmusic background
run: nix build --impure .#yandexmusic-background
- name: Build yandexmusic without flakes binaries - name: Build yandexmusic without flakes binaries
run: nix build --impure .#yandexmusic-noflakes run: nix build --impure .#yandexmusic-noflakes

View File

@ -18,9 +18,6 @@
{ {
packages = rec { packages = rec {
yandexmusic = yandexmusic-with pkgs; yandexmusic = yandexmusic-with pkgs;
yandexmusic-background = yandexmusic.override {
fixQuit = false;
};
yandexmusic-noflakes = pkgs.callPackage ./nix {}; yandexmusic-noflakes = pkgs.callPackage ./nix {};
generate_packages = pkgs.callPackage ./nix/generate_packages.nix {}; generate_packages = pkgs.callPackage ./nix/generate_packages.nix {};
default = yandexmusic; default = yandexmusic;

View File

@ -10,7 +10,6 @@
, electron , electron
, ymExe ? null , ymExe ? null
, fixQuit ? true
}: }:
let let
version_info = with builtins; fromJSON (readFile ../utility/version_info.json); version_info = with builtins; fromJSON (readFile ../utility/version_info.json);
@ -45,7 +44,7 @@ stdenvNoCC.mkDerivation
cp -r $repack ./repack.sh cp -r $repack ./repack.sh
cp -r $patches ./patches cp -r $patches ./patches
cp -r $utility ./utility cp -r $utility ./utility
bash "./repack.sh" ${if !fixQuit then "-q" else ""} -o "./app" "$src" bash "./repack.sh" -o "./app" "$src"
''; '';
dontPatch = true; dontPatch = true;

View File

@ -8,19 +8,16 @@ usage() {
echo " Options:" echo " Options:"
echo " -o DIR Path to destination folder" echo " -o DIR Path to destination folder"
echo " -x Extract and fix only to destination folder" echo " -x Extract and fix only to destination folder"
echo " -q Do not apply application quit fix"
echo " -h Show this help and exit" echo " -h Show this help and exit"
} }
exe_location= exe_location=
dst="$PWD/app" dst="$PWD/app"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
patch_fix_quit=1 while getopts :xo:h name; do
while getopts :xo:qh name; do
case $name in case $name in
x) extract_only=1 ;; x) extract_only=1 ;;
o) dst="$OPTARG" ;; o) dst="$OPTARG" ;;
q) patch_fix_quit=0 ;;
h) h)
usage usage
exit 0 exit 0