summaryrefslogtreecommitdiffstats
path: root/deployment
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-08-23 14:49:24 -0400
committerClementTsang <cjhtsang@uwaterloo.ca>2020-08-23 14:49:33 -0400
commit3165918d52456e60774d8051cbad9389ded33df3 (patch)
tree76250fe26049b18caa998d4643cabfac7ba0b0eb /deployment
parent279504e4018130f793508f11c94218ac19b4645a (diff)
ci: Fix broken windows deploy for msi and choco
Diffstat (limited to 'deployment')
-rw-r--r--deployment/windows/choco/choco_packager.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/deployment/windows/choco/choco_packager.py b/deployment/windows/choco/choco_packager.py
index f791cf2d..445349a4 100644
--- a/deployment/windows/choco/choco_packager.py
+++ b/deployment/windows/choco/choco_packager.py
@@ -12,6 +12,8 @@ deployment_file_path_64 = args[2]
version = args[3]
nuspec_template = args[4]
ps1_template = args[5]
+generated_nuspec = args[6]
+generated_ps1 = args[7]
print("Generating Chocolatey package for:")
print(" 32-bit: %s", deployment_file_path_32)
@@ -19,6 +21,8 @@ print(" 64-bit: %s", deployment_file_path_64)
print(" VERSION: %s" % version)
print(" NUSPEC TEMPLATE: %s" % nuspec_template)
print(" PS1 TEMPLATE: %s" % ps1_template)
+print(" GENERATED NUSPEC: %s" % generated_nuspec)
+print(" GENERATED_PS1: %s" % generated_ps1)
with open(deployment_file_path_32, "rb") as deployment_file_32, open(
deployment_file_path_64, "rb"
@@ -36,7 +40,7 @@ with open(deployment_file_path_32, "rb") as deployment_file_32, open(
print(substitute)
print("\n============================================================\n")
- with open("./bottom.nuspec", "w") as generated_file:
+ with open(generated_nuspec, "w") as generated_file:
generated_file.write(substitute)
os.makedirs("tools")
@@ -47,6 +51,6 @@ with open(deployment_file_path_32, "rb") as deployment_file_32, open(
print(substitute)
print("\n============================================================\n")
- with open("./tools/chocolateyinstall.ps1", "w") as generated_file:
+ with open(generated_ps1, "w") as generated_file:
generated_file.write(substitute)