mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-04 12:58:08 +03:00
Refine deployment tooling
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user