From 2ed7a45458b91e3d800dd94bcfc2854e7b3a8236 Mon Sep 17 00:00:00 2001 From: KorDen Date: Wed, 14 Apr 2021 16:46:37 +0300 Subject: [PATCH] Don't waste space by intermediate RAPT files --- rapt/buildlib/rapt/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rapt/buildlib/rapt/build.py b/rapt/buildlib/rapt/build.py index 7c6184f1..aeb031cb 100755 --- a/rapt/buildlib/rapt/build.py +++ b/rapt/buildlib/rapt/build.py @@ -628,7 +628,7 @@ def pack(): dfn = plat.path(dfn) - shutil.copy(sfn, dfn) + shutil.move(sfn, dfn) files.append(dfn) # Launch. @@ -651,6 +651,8 @@ def pack(): if finished is not None: finished(files) + if os.path.isdir(assets): + shutil.rmtree(assets) iface.final_success( __("The build seems to have succeeded.") +