From f74c3efcae2d274419f963f613d2f071ccb460d3 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Wed, 10 Nov 2021 15:28:15 +0100 Subject: [PATCH] [CD] Add windows resource files --- .github/workflows/release.yml | 4 ++- .gitignore | 3 ++ winres/icon.png | Bin 0 -> 3945 bytes winres/icon16.png | Bin 0 -> 274 bytes winres/winres.json | 61 ++++++++++++++++++++++++++++++++++ 5 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 winres/icon.png create mode 100644 winres/icon16.png create mode 100644 winres/winres.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90210df..06ce0cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,7 +101,7 @@ jobs: - name: Install Windows dependencies shell: msys2 {0} run: | - pacman -S --noconfirm mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2 mingw-w64-x86_64-go + pacman -S --noconfirm git mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2 mingw-w64-x86_64-go export GOROOT=/mingw64/lib/go export GOPATH=/mingw64 @@ -111,12 +111,14 @@ jobs: export GOROOT=/mingw64/lib/go export GOPATH=/mingw64 go get -v + go install github.com/tc-hib/go-winres@latest - name: Build shell: msys2 {0} run: | export GOROOT=/mingw64/lib/go export GOPATH=/mingw64 + go-winres make --product-version "git-tag" CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -v -tags static -ldflags "-s -w -H=windowsgui" - name: Upload artifact diff --git a/.gitignore b/.gitignore index 2a76c07..d79594e 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,6 @@ impregnate /Godeps/ # End of https://www.toptal.com/developers/gitignore/api/go + +# specific to this project +*.syso \ No newline at end of file diff --git a/winres/icon.png b/winres/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0925d80c8a23a15c7da253fe0ad82fe50036d52f GIT binary patch literal 3945 zcmZXXX&_Wl-@wlugFzVklFW$gN)Zy7u`g+ns6?a1o`@pEkR@cvo+T26kTu!IlC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/winres/winres.json new file mode 100644 index 0000000..e16e7d4 --- /dev/null +++ b/winres/winres.json @@ -0,0 +1,61 @@ +{ + "RT_GROUP_ICON": { + "APP": { + "0000": [ + "icon.png", + "icon16.png" + ] + } + }, + "RT_MANIFEST": { + "#1": { + "0409": { + "identity": { + "name": "Impregnate", + "version": "" + }, + "description": "The standalone installer for Cumcord.", + "minimum-os": "win7", + "execution-level": "as invoker", + "ui-access": false, + "auto-elevate": false, + "dpi-awareness": "system", + "disable-theming": false, + "disable-window-filtering": false, + "high-resolution-scrolling-aware": false, + "ultra-high-resolution-scrolling-aware": false, + "long-path-aware": false, + "printer-driver-isolation": false, + "gdi-scaling": false, + "segment-heap": false, + "use-common-controls-v6": false + } + } + }, + "RT_VERSION": { + "#1": { + "0000": { + "fixed": { + "file_version": "", + "product_version": "" + }, + "info": { + "0409": { + "Comments": "", + "CompanyName": "", + "FileDescription": "", + "FileVersion": "", + "InternalName": "", + "LegalCopyright": "", + "LegalTrademarks": "", + "OriginalFilename": "", + "PrivateBuild": "", + "ProductName": "Impregnate", + "ProductVersion": "", + "SpecialBuild": "" + } + } + } + } + } +} \ No newline at end of file