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
|
#!/bin/bash
|
||||||
|
|
||||||
TAG=$(git tag --points-at HEAD)
|
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 &&
|
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 &&
|
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
|
rm resource.syso
|
||||||
|
|
||||||
|
|
|
@ -410,7 +410,7 @@ func loadFlags() []zenity.Option {
|
||||||
case "":
|
case "":
|
||||||
ico = zenity.NoIcon
|
ico = zenity.NoIcon
|
||||||
default:
|
default:
|
||||||
opts = append(opts, zenity.CustomIcon(icon))
|
opts = append(opts, zenity.CustomIcon(ingestPath(icon)))
|
||||||
}
|
}
|
||||||
if ico != 0 {
|
if ico != 0 {
|
||||||
opts = append(opts, ico)
|
opts = append(opts, ico)
|
||||||
|
|
|
@ -1,17 +1,5 @@
|
||||||
{
|
{
|
||||||
"FixedFileInfo": {
|
"FixedFileInfo": {
|
||||||
"FileVersion": {
|
|
||||||
"Major": 0,
|
|
||||||
"Minor": 0,
|
|
||||||
"Patch": 0,
|
|
||||||
"Build": 0
|
|
||||||
},
|
|
||||||
"ProductVersion": {
|
|
||||||
"Major": 0,
|
|
||||||
"Minor": 0,
|
|
||||||
"Patch": 0,
|
|
||||||
"Build": 0
|
|
||||||
},
|
|
||||||
"FileFlagsMask": "3f",
|
"FileFlagsMask": "3f",
|
||||||
"FileFlags ": "00",
|
"FileFlags ": "00",
|
||||||
"FileOS": "040004",
|
"FileOS": "040004",
|
||||||
|
@ -19,18 +7,10 @@
|
||||||
"FileSubType": "00"
|
"FileSubType": "00"
|
||||||
},
|
},
|
||||||
"StringFileInfo": {
|
"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",
|
"ProductName": "zenity",
|
||||||
"ProductVersion": "0.0.0",
|
"CompanyName": "Nuno Cruces",
|
||||||
"SpecialBuild": ""
|
"LegalCopyright": "© 2022 Nuno Cruces",
|
||||||
|
"OriginalFilename": "zenity.exe"
|
||||||
},
|
},
|
||||||
"VarFileInfo": {
|
"VarFileInfo": {
|
||||||
"Translation": {
|
"Translation": {
|
||||||
|
|
Loading…
Reference in a new issue