Sfoglia il codice sorgente

adding property 'buildBranch' to System/Rsrc/Strings. Refs: #177.

Signed-off-by: Josef Templ <josef.templ@gmail.com>
Josef Templ 7 anni fa
parent
commit
f4d8a76e3c
2 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 2 0
      appbuild/appendProps.txt
  2. 3 2
      appbuild/build.py

+ 2 - 0
appbuild/appendProps.txt

@@ -14,4 +14,6 @@ ScriptBuild.AppendProperty buildNum "{#BuildNum}"
 
 ScriptBuild.AppendProperty buildDate "{#BuildDate}"
 
+ScriptBuild.AppendProperty buildBranch "{#BuildBranch}"
+
 ScriptBuild.AppendProperty commitHash "{#CommitHash}"

+ 3 - 2
appbuild/build.py

@@ -217,9 +217,10 @@ def appendSystemProperties():
     shellExec(appbuildDir, "sed s/{#FileVersion}/" + versionInfoVersion + "/ < appendProps.txt > appendProps_.txt")
     shellExec(appbuildDir, "sed s/{#BuildNum}/" + str(buildNum) + "/ < appendProps_.txt > appendProps.txt")
     shellExec(appbuildDir, "sed s/{#BuildDate}/" + buildDate[:10] + "/ < appendProps.txt > appendProps_.txt")
-    shellExec(appbuildDir, "sed s/{#CommitHash}/" + commitHash + "/ < appendProps_.txt > appendProps.txt")
+    shellExec(appbuildDir, 'sed s/{#BuildBranch}/"' + branch + '"/ < appendProps_.txt > appendProps.txt')
+    shellExec(appbuildDir, "sed s/{#CommitHash}/" + commitHash + "/ < appendProps.txt > appendProps_.txt")
     logStep("Appending version properties to System/Rsrc/Strings.odc")
-    runbbscript("appbuild/appendProps.txt")
+    runbbscript("appbuild/appendProps_.txt")
 
 def updateBbscript():
     if not args.test and branch == "master":