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:
parent
bea5319901
commit
237261c386
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user