From a58428b53436642d63230f0d2e2e140ba308f8ff Mon Sep 17 00:00:00 2001 From: daijro Date: Tue, 6 Aug 2024 04:21:08 -0500 Subject: [PATCH] Hotfix Windows launcher packaging Fixes an issue with the launcher not copying correctly during the packaging process for Windows. --- scripts/package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/package.py b/scripts/package.py index f4ad751..c64a85c 100644 --- a/scripts/package.py +++ b/scripts/package.py @@ -90,9 +90,10 @@ def add_includes_to_package(package_file, includes, fonts, new_file, target): shutil.copy2(file, fonts_dir) # Add launcher from launcher/dist/launch to temp_dir + launch_file = 'launch' + ('.exe' if target == 'windows' else '') shutil.copy2( - os.path.join('launcher', 'dist', 'launch'), - os.path.join(temp_dir, 'launch' + ('.exe' if target == 'windows' else '')), + os.path.join('launcher', 'dist', launch_file), + os.path.join(temp_dir, launch_file), ) # Remove unneeded paths