Skip to content

Commit

Permalink
chore: Add version and copyright to Windows app metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Sep 8, 2024
1 parent 42ee447 commit 6f93622
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/windows/winres.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"FileDescription": "Nightscout Menu Bar",
"FileVersion": "",
"InternalName": "",
"LegalCopyright": "",
"LegalCopyright": "© Gabe Cook",
"LegalTrademarks": "",
"OriginalFilename": "",
"PrivateBuild": "",
Expand Down
8 changes: 7 additions & 1 deletion hack/build-windows.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env bash
set -x

BINARY_NAME='Nightscout Menu Bar'
VERSION="${VERSION:-}"
if [[ -n "$VERSION" ]]; then
VERSION="${VERSION#v}"
VERSION+='.0'
fi

set -euo pipefail

Expand All @@ -18,7 +24,7 @@ cp -a assets/{png/icon_48x48,windows/icon48}.png
cp -a assets/{png/icon_64x64,windows/icon64}.png
cp -a assets/{png/icon_128x128,windows/icon128}.png
cp -a assets/{png/icon_256x256,windows/icon256}.png
go-winres make --arch=amd64,arm64 --in=assets/windows/winres.json
go-winres make --arch=amd64,arm64 --in=assets/windows/winres.json --product-version="$VERSION" --file-version="$VERSION"

# Build binary
export GOOS=windows CGO_ENABLED=1
Expand Down

0 comments on commit 6f93622

Please sign in to comment.