0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +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
run: nix build --impure .#yandexmusic
- name: Build yandexmusic background
run: nix build --impure .#yandexmusic-background
- name: Build yandexmusic without flakes binaries
run: nix build --impure .#yandexmusic-noflakes

View File

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

View File

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

View File

@ -8,19 +8,16 @@ usage() {
echo " Options:"
echo " -o DIR Path 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"
}
exe_location=
dst="$PWD/app"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
patch_fix_quit=1
while getopts :xo:qh name; do
while getopts :xo:h name; do
case $name in
x) extract_only=1 ;;
o) dst="$OPTARG" ;;
q) patch_fix_quit=0 ;;
h)
usage
exit 0