Added Enforce manifest using mt.exe into Installer build script

This commit is contained in:
Internet Addict 2025-02-19 08:54:07 +00:00
parent a87c7222c4
commit 4ad5b15db7

View file

@ -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 ..