Procházet zdrojové kódy

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 před 2 roky
rodič
revize
5cbb084311
1 změnil soubory, kde provedl 10 přidání a 0 odebrání
  1. 10 0
      .github/workflows/build.yml

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

@@ -103,3 +103,13 @@ jobs:
           files/ISCC.exe setup-vista.iss &&
           files/ISCC.exe setup-vista.iss &&
           mt '-inputresource:Output\mysetup-vista.exe' -out:mysetup-vista.manifest &&
           mt '-inputresource:Output\mysetup-vista.exe' -out:mysetup-vista.manifest &&
           cat 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