From 1f78e4c10173a03ac41b9121b88b690546dd2f7a Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sun, 9 Jan 2022 11:28:03 -0500 Subject: [PATCH] =?UTF-8?q?protontricks:=201.6.2=20=E2=86=92=201.7.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../protontricks/default.nix | 4 +- .../protontricks/steam-run.patch | 64 +++++++++---------- 2 files changed, 32 insertions(+), 36 deletions(-) diff --git a/pkgs/tools/package-management/protontricks/default.nix b/pkgs/tools/package-management/protontricks/default.nix index 125b96953734..4ddd758c59bd 100644 --- a/pkgs/tools/package-management/protontricks/default.nix +++ b/pkgs/tools/package-management/protontricks/default.nix @@ -14,13 +14,13 @@ buildPythonApplication rec { pname = "protontricks"; - version = "1.6.2"; + version = "1.7.0"; src = fetchFromGitHub { owner = "Matoking"; repo = pname; rev = version; - sha256 = "sha256-XC5ip12wlXRo/AaTFJWEZvEZPPC1WtXTyeYivvyHZaE="; + sha256 = "sha256-StI9UdSILcCUmViQnxteOJr6xLSz+EgtxRpJis57lBY="; }; patches = [ diff --git a/pkgs/tools/package-management/protontricks/steam-run.patch b/pkgs/tools/package-management/protontricks/steam-run.patch index d27289bb3f5c..92565f88fdd0 100644 --- a/pkgs/tools/package-management/protontricks/steam-run.patch +++ b/pkgs/tools/package-management/protontricks/steam-run.patch @@ -1,5 +1,5 @@ diff --git a/src/protontricks/cli/main.py b/src/protontricks/cli/main.py -index bd651aa..2b82aea 100755 +index 8be6c71..f5772df 100755 --- a/src/protontricks/cli/main.py +++ b/src/protontricks/cli/main.py @@ -14,8 +14,8 @@ import sys @@ -10,7 +10,7 @@ index bd651aa..2b82aea 100755 - find_steam_path, get_steam_apps, get_steam_lib_paths) +from ..steam import (find_proton_app, find_steam_path, get_steam_apps, + get_steam_lib_paths) - from ..util import is_flatpak_sandbox, run_command + from ..util import get_running_flatpak_version, FLATPAK_BWRAP_COMPATIBLE_VERSION, run_command from ..winetricks import get_winetricks_path from .util import (CustomArgumentParser, cli_error_handler, enable_logging, @@ -60,8 +60,7 @@ def main(args=None): @@ -23,7 +23,7 @@ index bd651aa..2b82aea 100755 "PROTONTRICKS_GUI: GUI provider to use, accepts either 'yad' " "or 'zenity'" ), -@@ -147,17 +146,9 @@ def main(args=None): +@@ -151,17 +150,9 @@ def main(args=None): if not steam_path: exit_("Steam installation directory could not be found.") @@ -43,7 +43,7 @@ index bd651aa..2b82aea 100755 else: use_steam_runtime = False logger.info("Steam Runtime disabled.") -@@ -218,7 +209,6 @@ def main(args=None): +@@ -222,7 +213,6 @@ def main(args=None): proton_app=proton_app, steam_app=steam_app, use_steam_runtime=use_steam_runtime, @@ -51,7 +51,7 @@ index bd651aa..2b82aea 100755 command=[str(winetricks_path), "--gui"], use_bwrap=use_bwrap ) -@@ -286,7 +276,6 @@ def main(args=None): +@@ -290,7 +280,6 @@ def main(args=None): proton_app=proton_app, steam_app=steam_app, use_steam_runtime=use_steam_runtime, @@ -59,7 +59,7 @@ index bd651aa..2b82aea 100755 use_bwrap=use_bwrap, command=[str(winetricks_path)] + args.winetricks_command ) -@@ -297,7 +286,6 @@ def main(args=None): +@@ -301,7 +290,6 @@ def main(args=None): steam_app=steam_app, command=args.command, use_steam_runtime=use_steam_runtime, @@ -68,7 +68,7 @@ index bd651aa..2b82aea 100755 # Pass the command directly into the shell *without* # escaping it diff --git a/src/protontricks/steam.py b/src/protontricks/steam.py -index be5322b..552f894 100644 +index a291762..8af06c5 100644 --- a/src/protontricks/steam.py +++ b/src/protontricks/steam.py @@ -12,8 +12,8 @@ from .util import lower_dict, is_flatpak_sandbox @@ -82,7 +82,7 @@ index be5322b..552f894 100644 "find_proton_app", "get_steam_lib_paths", "get_compat_tool_dirs", "get_custom_compat_tool_installations_in_dir", "get_custom_compat_tool_installations", "find_current_steamid3", "get_appid_from_shortcut", -@@ -318,37 +318,6 @@ def find_steam_path(): +@@ -326,37 +326,6 @@ def find_steam_path(): return None, None @@ -121,31 +121,27 @@ index be5322b..552f894 100644 APPINFO_STRUCT_SECTION = "