changing exclusions list
This commit is contained in:
parent
0c9a3e45ae
commit
0f517e8085
|
|
@ -56,7 +56,7 @@ def buildAndPackage(branch, target, deploy):
|
||||||
run(['scp', packageFile, f'{host}:{binariesDeploy}/{packageFile}'])
|
run(['scp', packageFile, f'{host}:{binariesDeploy}/{packageFile}'])
|
||||||
else:
|
else:
|
||||||
packageFile = f'binaries-{deploy}-{tag}-{target}.tar.xz'
|
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}'])
|
run(['scp', packageFile, f'{host}:{binariesDeploy}/{packageFile}'])
|
||||||
|
|
||||||
os.makedirs(f'staging/sampleGame/{tag}', exist_ok=True)
|
os.makedirs(f'staging/sampleGame/{tag}', exist_ok=True)
|
||||||
|
|
@ -68,9 +68,13 @@ def buildAndPackage(branch, target, deploy):
|
||||||
'newProject.pdb',
|
'newProject.pdb',
|
||||||
'toolbox.exe',
|
'toolbox.exe',
|
||||||
'toolbox.pdb'
|
'toolbox.pdb'
|
||||||
|
'headless',
|
||||||
|
'newProject',
|
||||||
|
'toolbox'
|
||||||
]
|
]
|
||||||
|
|
||||||
for f in os.listdir(f'zig-out-{tag}/bin'):
|
for f in os.listdir(f'zig-out-{tag}/bin'):
|
||||||
|
if f not in excludeList:
|
||||||
shutil.copy(os.path.join(f'zig-out-{tag}/bin', f), f"staging/sampleGame/{tag}/")
|
shutil.copy(os.path.join(f'zig-out-{tag}/bin', f), f"staging/sampleGame/{tag}/")
|
||||||
|
|
||||||
if os.path.exists(f'zig-out-{tag}/modules'):
|
if os.path.exists(f'zig-out-{tag}/modules'):
|
||||||
|
|
@ -96,7 +100,7 @@ def buildAndPackage(branch, target, deploy):
|
||||||
run(['scp', packageFile, f'{host}:{sampleGameDeploy}/{packageFile}'])
|
run(['scp', packageFile, f'{host}:{sampleGameDeploy}/{packageFile}'])
|
||||||
else:
|
else:
|
||||||
packageFile = f'sampleGame-{deploy}-{target}.tar.xz'
|
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}'])
|
run(['scp', packageFile, f'{host}:{sampleGameDeploy}/{packageFile}'])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue