瀏覽代碼

ci: verify installer

With this change, the automated builds run the installer, verify that it
exits with success, and that the InnoSetup compiler was installed.

While at it, the manifest is also extracted and shown, for debugging
purposes.

Signed-off-by: Johannes Schindelin <[email protected]>
Johannes Schindelin 2 年之前
父節點
當前提交
5cbb084311
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      .github/workflows/build.yml

+ 10 - 0
.github/workflows/build.yml

@@ -103,3 +103,13 @@ jobs:
           files/ISCC.exe setup-vista.iss &&
           mt '-inputresource:Output\mysetup-vista.exe' -out:mysetup-vista.manifest &&
           cat mysetup-vista.manifest
+      - name: verify installer
+        shell: bash
+        run: |
+          set -x &&
+          ver="$(sed -n 's/^set VER=//p' <build.bat)" &&
+          mt '-inputresource:Output\innosetup-'$ver.exe -out:innosetup-$ver.manifest &&
+          cat innosetup-$ver.manifest &&
+          ./Output/innosetup-$ver.exe //verysilent //dir=InnoSetup //noicons \
+            //tasks= //portable=1 &&
+          test -x InnoSetup/ISCC.exe