瀏覽代碼

Merge pull request #189 from BlackBoxCenter/issue-#177

adding property 'buildBranch' to System/Rsrc/Strings. Refs: #177.
RCampbellBB 7 年之前
父節點
當前提交
68b54a7d34
共有 2 個文件被更改,包括 5 次插入2 次删除
  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":