Refine deployment tooling

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-02-29 18:58:35 +08:00
parent ca9e25e524
commit 2df6f77f53
+14
View File
@@ -190,6 +190,13 @@ def main():
f'{PLATFORM.lower()}{PLATFORM_RELEASE}'
)
try:
shutil.rmtree(ROOT_DIR / DEPLOY_DIR_NAME / foldername)
except FileNotFoundError:
pass
except Exception:
raise
shutil.copytree(
ROOT_DIR / DEPLOY_DIR_NAME / f'{APPLICATION_NAME}.dist',
ROOT_DIR / DEPLOY_DIR_NAME / foldername,
@@ -223,6 +230,13 @@ def main():
raise
try:
shutil.rmtree(appDir / 'Furious-GUI.app')
except FileNotFoundError:
pass
except Exception:
raise
shutil.copytree(
ROOT_DIR / DEPLOY_DIR_NAME / 'Furious-GUI.app',
appDir / 'Furious-GUI.app',