Browse Source

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 năm trước cách đây
mục cha
commit
5cbb084311
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  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