ci: Fix another typo

This commit is contained in:
ClementTsang 2020-08-23 15:48:06 -04:00
parent 3165918d52
commit f030600468
2 changed files with 4 additions and 3 deletions

View file

@ -54,7 +54,7 @@ before_deploy:
strip "./target/i686-pc-windows-msvc/release/btm"; strip "./target/i686-pc-windows-msvc/release/btm";
mv "./target/i686-pc-windows-msvc/release/btm" "btm.exe"; mv "./target/i686-pc-windows-msvc/release/btm" "btm.exe";
zip bottom_i686-pc-windows-msvc.zip "btm.exe"; zip bottom_i686-pc-windows-msvc.zip "btm.exe";
python "./deployment/windows/choco/choco_packager.py" "bottom_i686-pc-windows-msvc.zip" "bottom_x86_64-pc-windows-msvc.zip" $TRAVIS_TAG "./deployment/windows/choco/bottom.nuspec.template" "./deployment/windows/choco/chocolateyinstall.ps1.template" "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/chocolateyinstall.ps1"; python "./deployment/windows/choco/choco_packager.py" "bottom_i686-pc-windows-msvc.zip" "bottom_x86_64-pc-windows-msvc.zip" $TRAVIS_TAG "./deployment/windows/choco/bottom.nuspec.template" "./deployment/windows/choco/chocolateyinstall.ps1.template" "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/chocolateyinstall.ps1" "./deployment/windows/choco/tools/";
zip choco.zip "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/"; zip choco.zip "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/";
# Generating msi # Generating msi
# See https://travis-ci.community/t/unable-to-install-wix-toolset/1071 for why we do nuget. # See https://travis-ci.community/t/unable-to-install-wix-toolset/1071 for why we do nuget.

View file

@ -22,7 +22,8 @@ print(" VERSION: %s" % version)
print(" NUSPEC TEMPLATE: %s" % nuspec_template) print(" NUSPEC TEMPLATE: %s" % nuspec_template)
print(" PS1 TEMPLATE: %s" % ps1_template) print(" PS1 TEMPLATE: %s" % ps1_template)
print(" GENERATED NUSPEC: %s" % generated_nuspec) print(" GENERATED NUSPEC: %s" % generated_nuspec)
print(" GENERATED_PS1: %s" % generated_ps1) print(" GENERATED PS1: %s" % generated_ps1)
print(" GENERATED PS1 DIR: %s" % generated_ps1_dir)
with open(deployment_file_path_32, "rb") as deployment_file_32, open( with open(deployment_file_path_32, "rb") as deployment_file_32, open(
deployment_file_path_64, "rb" deployment_file_path_64, "rb"
@ -43,7 +44,7 @@ with open(deployment_file_path_32, "rb") as deployment_file_32, open(
with open(generated_nuspec, "w") as generated_file: with open(generated_nuspec, "w") as generated_file:
generated_file.write(substitute) generated_file.write(substitute)
os.makedirs("tools") os.makedirs(generated_ps1_dir)
with open(ps1_template, "r") as template_file: with open(ps1_template, "r") as template_file:
template = Template(template_file.read()) template = Template(template_file.read())
substitute = template.safe_substitute(version=version, hash_32=hash_32, hash_64=hash_64) substitute = template.safe_substitute(version=version, hash_32=hash_32, hash_64=hash_64)