ソースを参照

ci: verify that the Vista hack works

InnoSetup needs to hack the manifest when targeting Vista because some
features are not understood by that Windows version.

Since that hack is a little bit finicky, let's ensure in the automated
builds that it works (by exercising the `</assembly>` consistency
check).

Signed-off-by: Johannes Schindelin <[email protected]>
Johannes Schindelin 2 年 前
コミット
76b386fdf1
1 ファイル変更18 行追加0 行削除
  1. 18 0
      .github/workflows/build.yml

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

@@ -85,3 +85,21 @@ jobs:
         with:
           name: ISHelp
           path: ISHelp/Staging
+      - name: find mt.exe
+        shell: bash
+        run: |
+          set -x &&
+          mt=$(ls -t /c/Program\ Files*/Windows\ Kits/10/bin/*/x64/mt.exe) &&
+          test -n "$mt" &&
+          echo "${mt%%/mt.exe*}" >>$GITHUB_PATH
+      - name: verify MinVersion=6.0 (to support Vista)
+        shell: bash
+        run: |
+          set -x &&
+          sed '/^\[Setup\]/a\
+          MinVersion=6.0\
+          OutputBaseFilename=mysetup-vista
+          ' <setup.iss >setup-vista.iss &&
+          files/ISCC.exe setup-vista.iss &&
+          mt '-inputresource:Output\mysetup-vista.exe' -out:mysetup-vista.manifest &&
+          cat mysetup-vista.manifest