From 0f517e8085b02448b1962f07c95ffded08aab392 Mon Sep 17 00:00:00 2001 From: peterino2 Date: Sun, 12 Oct 2025 15:43:14 -0700 Subject: [PATCH] changing exclusions list --- tools/scripts/automation.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/scripts/automation.py b/tools/scripts/automation.py index 538095d..bb0383f 100644 --- a/tools/scripts/automation.py +++ b/tools/scripts/automation.py @@ -56,7 +56,7 @@ def buildAndPackage(branch, target, deploy): run(['scp', packageFile, f'{host}:{binariesDeploy}/{packageFile}']) else: packageFile = f'binaries-{deploy}-{tag}-{target}.tar.xz' - run(['tar', '-cvzf', os.path.abspath(packageFile), '-C', f'zig-out-{tag}']) + run(['tar', '-cvzf', os.path.abspath(packageFile), f'zig-out-{tag}']) run(['scp', packageFile, f'{host}:{binariesDeploy}/{packageFile}']) os.makedirs(f'staging/sampleGame/{tag}', exist_ok=True) @@ -68,10 +68,14 @@ def buildAndPackage(branch, target, deploy): 'newProject.pdb', 'toolbox.exe', 'toolbox.pdb' + 'headless', + 'newProject', + 'toolbox' ] for f in os.listdir(f'zig-out-{tag}/bin'): - shutil.copy(os.path.join(f'zig-out-{tag}/bin', f), f"staging/sampleGame/{tag}/") + if f not in excludeList: + shutil.copy(os.path.join(f'zig-out-{tag}/bin', f), f"staging/sampleGame/{tag}/") if os.path.exists(f'zig-out-{tag}/modules'): os.makedirs('staging/sampleGame/zig-out/modules', exist_ok=True) @@ -96,7 +100,7 @@ def buildAndPackage(branch, target, deploy): run(['scp', packageFile, f'{host}:{sampleGameDeploy}/{packageFile}']) else: packageFile = f'sampleGame-{deploy}-{target}.tar.xz' - run(['tar', '-cvzf', os.path.abspath(packageFile), '-C', f'staging/sampleGame']) + run(['tar', '-cvzf', os.path.abspath(packageFile), f'.'], cwd=os.path.join(os.getcwd(), 'staging/sampleGame')) run(['scp', packageFile, f'{host}:{sampleGameDeploy}/{packageFile}'])