Sidestep go install issue (Linux).

This commit is contained in:
Nuno Cruces 2021-05-06 00:38:49 +01:00
parent ce2809b72b
commit 40c8a6e6cd
17 changed files with 22 additions and 18 deletions

View file

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo
GOOS=windows GOARCH=386 go build -ldflags="-s -w" -trimpath && GOOS=windows GOARCH=386 go build -ldflags="-s -w" -trimpath &&
zip -9 zenity_win32.zip zenity.exe zip -9 zenity_win32.zip zenity.exe
@ -9,4 +11,4 @@ zip -9 zenity_win64.zip zenity.exe
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -trimpath && GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -trimpath &&
zip -9 zenity_macos.zip zenity zip -9 zenity_macos.zip zenity
go build go build -tags dev

View file

@ -1,3 +1,5 @@
// +build windows darwin dev
package main package main
import ( import (
@ -17,8 +19,6 @@ import (
"github.com/ncruces/zenity/internal/zenutil" "github.com/ncruces/zenity/internal/zenutil"
) )
//go:generate go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo
const ( const (
unspecified = "\x00" unspecified = "\x00"
) )

View file

@ -1,3 +1,5 @@
// +build windows darwin dev
package main package main
import ( import (

View file

@ -1,4 +1,4 @@
// +build !windows,!js // +build darwin dev
package main package main

View file

@ -24,7 +24,7 @@
"FileDescription": "", "FileDescription": "",
"FileVersion": "0.0.0.0", "FileVersion": "0.0.0.0",
"InternalName": "zenity", "InternalName": "zenity",
"LegalCopyright": "© 2020 Nuno Cruces", "LegalCopyright": "© 2021 Nuno Cruces",
"LegalTrademarks": "", "LegalTrademarks": "",
"OriginalFilename": "zenity.exe", "OriginalFilename": "zenity.exe",
"PrivateBuild": "", "PrivateBuild": "",
@ -38,4 +38,4 @@
"CharsetID": "04B0" "CharsetID": "04B0"
} }
} }
} }

View file

@ -1,4 +1,4 @@
// +build !windows,!darwin,!js // +build !windows,!darwin
package zenity package zenity

View file

@ -1,4 +1,4 @@
// +build !windows,!darwin,!js // +build !windows,!darwin
package zenity package zenity

View file

@ -1,4 +1,4 @@
// +build !windows,!darwin,!js // +build !windows,!darwin
package zenity package zenity

View file

@ -1,4 +1,4 @@
// +build !windows,!darwin,!js // +build !windows,!darwin
// Package zenutil is internal. DO NOT USE. // Package zenutil is internal. DO NOT USE.
package zenutil package zenutil

View file

@ -1,4 +1,4 @@
// +build !windows,!js // +build !windows
package zenutil package zenutil

View file

@ -1,4 +1,4 @@
// +build !windows,!darwin,!js // +build !windows,!darwin
package zenutil package zenutil

View file

@ -1,4 +1,4 @@
// +build !windows,!darwin,!js // +build !windows,!darwin
package zenity package zenity

View file

@ -1,4 +1,4 @@
// +build !windows,!darwin,!js // +build !windows,!darwin
package zenity package zenity

View file

@ -1,4 +1,4 @@
// +build !windows,!darwin,!js // +build !windows,!darwin
package zenity package zenity

View file

@ -1,4 +1,4 @@
// +build !windows,!darwin,!js // +build !windows,!darwin
package zenity package zenity

View file

@ -1,4 +1,4 @@
// +build !windows,!darwin,!js // +build !windows,!darwin
package zenity package zenity

View file

@ -1,4 +1,4 @@
// +build !windows,!js // +build !windows
package zenity package zenity