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 0000000..0925d80 Binary files /dev/null and b/winres/icon.png differ diff --git a/winres/icon16.png b/winres/icon16.png new file mode 100644 index 0000000..a822d34 Binary files /dev/null and b/winres/icon16.png differ diff --git a/winres/winres.json b/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