Shim and version info.
This commit is contained in:
parent
53d7c0954c
commit
396f3f0a64
3 changed files with 9 additions and 28 deletions
|
@ -1,15 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
TAG=$(git tag --points-at HEAD)
|
||||
echo 'package main; const tag = "'$TAG'"' | gofmt > tag.go
|
||||
echo 'package main; const tag = "'$TAG'"' > tag.go
|
||||
|
||||
go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo
|
||||
printf '#!/bin/sh\nexec zenity.exe --unixeol --cygpath "$@"' > zenity
|
||||
go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo "-product-version=$TAG"
|
||||
|
||||
GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath &&
|
||||
zip -9 zenity_win32.zip zenity.exe
|
||||
zip -9 zenity_win32.zip zenity zenity.exe
|
||||
|
||||
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath &&
|
||||
zip -9 zenity_win64.zip zenity.exe
|
||||
zip -9 zenity_win64.zip zenity zenity.exe
|
||||
|
||||
rm resource.syso
|
||||
|
||||
|
|
|
@ -410,7 +410,7 @@ func loadFlags() []zenity.Option {
|
|||
case "":
|
||||
ico = zenity.NoIcon
|
||||
default:
|
||||
opts = append(opts, zenity.CustomIcon(icon))
|
||||
opts = append(opts, zenity.CustomIcon(ingestPath(icon)))
|
||||
}
|
||||
if ico != 0 {
|
||||
opts = append(opts, ico)
|
||||
|
|
|
@ -1,17 +1,5 @@
|
|||
{
|
||||
"FixedFileInfo": {
|
||||
"FileVersion": {
|
||||
"Major": 0,
|
||||
"Minor": 0,
|
||||
"Patch": 0,
|
||||
"Build": 0
|
||||
},
|
||||
"ProductVersion": {
|
||||
"Major": 0,
|
||||
"Minor": 0,
|
||||
"Patch": 0,
|
||||
"Build": 0
|
||||
},
|
||||
"FileFlagsMask": "3f",
|
||||
"FileFlags ": "00",
|
||||
"FileOS": "040004",
|
||||
|
@ -19,18 +7,10 @@
|
|||
"FileSubType": "00"
|
||||
},
|
||||
"StringFileInfo": {
|
||||
"Comments": "zenity",
|
||||
"CompanyName": "Nuno Cruces",
|
||||
"FileDescription": "",
|
||||
"FileVersion": "0.0.0.0",
|
||||
"InternalName": "zenity",
|
||||
"LegalCopyright": "© 2022 Nuno Cruces",
|
||||
"LegalTrademarks": "",
|
||||
"OriginalFilename": "zenity.exe",
|
||||
"PrivateBuild": "",
|
||||
"ProductName": "zenity",
|
||||
"ProductVersion": "0.0.0",
|
||||
"SpecialBuild": ""
|
||||
"CompanyName": "Nuno Cruces",
|
||||
"LegalCopyright": "© 2022 Nuno Cruces",
|
||||
"OriginalFilename": "zenity.exe"
|
||||
},
|
||||
"VarFileInfo": {
|
||||
"Translation": {
|
||||
|
|
Loading…
Reference in a new issue