Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
5cbb084311
1 değiştirilmiş dosya ile 10 ekleme ve 0 silme
  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