From ece601bfb28722492bea0ac48047953aa9f22b9b Mon Sep 17 00:00:00 2001 From: CommandMC Date: Thu, 20 Aug 2026 15:48:08 +0200 Subject: [PATCH 1/2] add wrapper exe support (#777) (cherry picked from commit c9ff491c64fc336496973b3fea0e2373bbb0f9f0) Co-authored-by: Etaash Mathamsetty --- legendary/cli.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/legendary/cli.py b/legendary/cli.py index 158e5aa..45bedf0 100644 --- a/legendary/cli.py +++ b/legendary/cli.py @@ -687,15 +687,18 @@ class LegendaryCLI: if args.json: return self._print_json(vars(params), args.pretty_json) + # Copying existing env vars is required on Windows, probably a good idea on Linux + full_env = os.environ.copy() + full_env.update(params.environment) + full_params = list() full_params.extend(params.launch_command) + if 'LEGENDARY_WRAPPER_EXE' in full_env: + full_params.append(full_env['LEGENDARY_WRAPPER_EXE'].strip()) full_params.append(os.path.join(params.game_directory, params.game_executable)) full_params.extend(params.game_parameters) full_params.extend(params.user_parameters) full_params.extend(params.egl_parameters) - # Copying existing env vars is required on Windows, probably a good idea on Linux - full_env = os.environ.copy() - full_env.update(params.environment) if 'CX_BOTTLE' in full_env and any('SharedSupport/CrossOver' in p for p in params.launch_command): # if using crossover, unset WINEPREFIX From 7490e78855fd6240e27b716d5d99025d29aeaafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lidwin?= Date: Thu, 20 Aug 2026 21:56:41 +0200 Subject: [PATCH 2/2] ci: exclude dev dependencies from zipapp packaging (#782) it looks like ruff binary was being installed, inflating the size by a lot --- .github/workflows/build-base.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-base.yml b/.github/workflows/build-base.yml index be3789c..63633f1 100644 --- a/.github/workflows/build-base.yml +++ b/.github/workflows/build-base.yml @@ -80,7 +80,7 @@ jobs: - run: mkdir -p build dist - name: Dependencies - run: uv export --format requirements.txt --no-editable | uv pip install --requirement - --target build + run: uv export --format requirements.txt --no-editable --no-dev | uv pip install --requirement - --target build - run: cp zipapp_main.py build/__main__.py