Added Enforce manifest using mt.exe into Installer build script
This commit is contained in:
parent
a87c7222c4
commit
4ad5b15db7
1 changed files with 7 additions and 0 deletions
|
@ -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 ..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue