diff --git a/.forgejo/workflows/Installer_Windows-AMD64-Nightly.yaml b/.forgejo/workflows/Installer_Windows-AMD64-Nightly.yaml index bccf97d..d4ccba5 100644 --- a/.forgejo/workflows/Installer_Windows-AMD64-Nightly.yaml +++ b/.forgejo/workflows/Installer_Windows-AMD64-Nightly.yaml @@ -25,6 +25,11 @@ jobs: run: | magick -version + - name: Check mt.exe availability + shell: bash + run: | + mt.exe /? > /dev/null 2>&1 || { echo "mt.exe not available, please install the Windows SDK"; exit 1; } + - name: Clone Publisher repo and Generate Manifest Files shell: bash run: | @@ -65,6 +70,8 @@ jobs: # Build the installer; resource.syso is automatically linked. CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 \ go build -ldflags "-s -w" -o spitfire-installer.exe + # Enforce manifest using mt.exe + mt.exe -manifest app.manifest -outputresource:spitfire-installer.exe\;#1 # Move the built executable one level up for packaging. mv spitfire-installer.exe .. cd ..