diff --git a/.gitignore b/.gitignore index 3142bca..cbb80ba 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ /MANUAL /MANUAL.html /MANUAL.gz -/o/ \ No newline at end of file +/o/ +/rsrc*.syso +/resource_windows_*.syso \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1b345d3..39983a6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,6 +9,26 @@ before: - go run github.com/davidnewhall/md2roff@v0.0.1 --manual xt --version "{{.Version}}-{{.Env.REVISION}}" --date "{{.Date}}" MANUAL.md - rm -f MANUAL.gz - gzip -9 MANUAL + # Icon + manifest + VERSIONINFO (Explorer File version). -platform-specific: + # Windows is amd64/386/arm64; a single amd64 .syso would miss the others. + # FileVersion is the x.y.z prefix of .Version plus REVISION (not .RawVersion: + # that stays on the last tag if --nightly is ever used). ProductVersion is + # .Version. goversioninfo fills the numeric fields from the FileVersion string. + - >- + go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo@v1.7.0 + -platform-specific + -icon init/windows/application.ico + -manifest init/windows/manifest.xml + -company "Go Lift" + -copyright "© Go Lift (https://golift.io)" + -description "eXtractor Tool - Recursively decompress archives" + -internal-name xt + -original-name xt.exe + -product-name xt + -file-version "{{ index (split .Version "-") 0 }}.{{ .Env.REVISION }}" + -product-version "{{ .Version }}" + -translation 1033 + -charset 1200 builds: - id: xt diff --git a/init/windows/README.md b/init/windows/README.md new file mode 100644 index 0000000..6bf4634 --- /dev/null +++ b/init/windows/README.md @@ -0,0 +1,6 @@ +Windows file icon (Explorer / exe Properties), not a tray icon. + +`application.ico` is a multi-size ICO (16, 24, 32, 48, 64, 128, 256) of the +circular XT emblem from the repo wordmark. `application-256.png` is the same +art as a square PNG with a transparent background. GoReleaser embeds the ico +via goversioninfo. diff --git a/init/windows/application-256.png b/init/windows/application-256.png new file mode 100644 index 0000000..5397ef3 Binary files /dev/null and b/init/windows/application-256.png differ diff --git a/init/windows/application.ico b/init/windows/application.ico new file mode 100644 index 0000000..b192d42 Binary files /dev/null and b/init/windows/application.ico differ diff --git a/init/windows/manifest.xml b/init/windows/manifest.xml new file mode 100644 index 0000000..4ae0cc6 --- /dev/null +++ b/init/windows/manifest.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + PerMonitorV2, PerMonitor + True + + + + + + + + + + + + + + + + +