Prechádzať zdrojové kódy

generating a blackbox setup.exe made optional if option --test specified.
Option --test is used when working interactively and then the InnoSetup tool
required for generating the setup.exe file is not visible.
The resulting error messages are simply ignored.

Signed-off-by: Josef Templ <josef.templ@gmail.com>

Josef Templ 8 rokov pred
rodič
commit
a1135f5f62
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      appbuild/build.py

+ 2 - 2
appbuild/build.py

@@ -271,8 +271,8 @@ def buildSetupFile():
                   + '" "/dAppVerName=' + appVerName
                   + '" "/dVersionInfoVersion=' + versionInfoVersion
                   + '"', False) # a meaningless error is displayed
-    shellExec(bbDir, "mv Output/setup.exe " + outputPathPrefix + "-setup.exe")
-    shellExec(bbDir, "rm -R Output")
+    shellExec(bbDir, "mv Output/setup.exe " + outputPathPrefix + "-setup.exe", not args.test)
+    shellExec(bbDir, "rm -R Output", not args.test)
 
 def buildZipFile():
     deleteBbFile("LICENSE.txt")