summaryrefslogtreecommitdiff
path: root/bin/build-windows-installer
diff options
context:
space:
mode:
Diffstat (limited to 'bin/build-windows-installer')
-rw-r--r--bin/build-windows-installer8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/build-windows-installer b/bin/build-windows-installer
index 44c29742..a2d421ce 100644
--- a/bin/build-windows-installer
+++ b/bin/build-windows-installer
@@ -6,10 +6,16 @@ mkdir win
cp installer_scripts/template.iss win/win_build.iss
# adds the year and version to the inno installer
info_year=$( date "+%Y" )
-copyright_year="#define COPYRIGHT \""${info_year}"\" + URL"
+copyright_year="#define COPYRIGHT \""${info_year}"\""
version_block="#define VERSION \""${VERSION}"\""
sed -i'' -e '/;inkstitch-year/ a\'$'\n'"${copyright_year}"'' win/win_build.iss
sed -i'' -e '/;inkstitch-version/ a\'$'\n'"${version_block}"'' win/win_build.iss
iscc win/win_build.iss
mv win/inkstitch.exe artifacts/inkstitch-${VERSION}-${OS}.exe
+cd dist
+echo "Creating zip"
+# The python zipfile command line utility can't handle directories
+# containing files with UTF-8 names on Windows, so we use 7-zip instead.
+7z a ../artifacts/inkstitch-${VERSION}-${OS}.zip *
+cd ..