Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
/MANUAL
/MANUAL.html
/MANUAL.gz
/o/
/o/
/rsrc*.syso
/resource_windows_*.syso
20 changes: 20 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions init/windows/README.md
Original file line number Diff line number Diff line change
@@ -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.
Binary file added init/windows/application-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added init/windows/application.ico
Binary file not shown.
29 changes: 29 additions & 0 deletions init/windows/manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="*" name="xt" type="win32"/>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
</dependentAssembly>
</dependency>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">True</dpiAware>
</windowsSettings>
</application>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!-- Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!-- Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
<!-- Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
</application>
</compatibility>
</assembly>