diff --git a/cmd/zenity/build.sh b/cmd/zenity/build.sh index c38e9a0..42f300b 100755 --- a/cmd/zenity/build.sh +++ b/cmd/zenity/build.sh @@ -1,5 +1,7 @@ #!/bin/bash +go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo + GOOS=windows GOARCH=386 go build -ldflags="-s -w" -trimpath && 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 && zip -9 zenity_macos.zip zenity -go build +go build -tags dev diff --git a/cmd/zenity/main.go b/cmd/zenity/main.go index 44b6610..1dfeedf 100644 --- a/cmd/zenity/main.go +++ b/cmd/zenity/main.go @@ -1,3 +1,5 @@ +// +build windows darwin dev + package main import ( @@ -17,8 +19,6 @@ import ( "github.com/ncruces/zenity/internal/zenutil" ) -//go:generate go run github.com/josephspurrier/goversioninfo/cmd/goversioninfo - const ( unspecified = "\x00" ) diff --git a/cmd/zenity/progress.go b/cmd/zenity/progress.go index 4fff0f3..01ca755 100644 --- a/cmd/zenity/progress.go +++ b/cmd/zenity/progress.go @@ -1,3 +1,5 @@ +// +build windows darwin dev + package main import ( diff --git a/cmd/zenity/progress_unix.go b/cmd/zenity/progress_unix.go index df4cdb7..c3e25d2 100644 --- a/cmd/zenity/progress_unix.go +++ b/cmd/zenity/progress_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!js +// +build darwin dev package main diff --git a/cmd/zenity/versioninfo.json b/cmd/zenity/versioninfo.json index 5558768..d1c99c0 100644 --- a/cmd/zenity/versioninfo.json +++ b/cmd/zenity/versioninfo.json @@ -24,7 +24,7 @@ "FileDescription": "", "FileVersion": "0.0.0.0", "InternalName": "zenity", - "LegalCopyright": "© 2020 Nuno Cruces", + "LegalCopyright": "© 2021 Nuno Cruces", "LegalTrademarks": "", "OriginalFilename": "zenity.exe", "PrivateBuild": "", @@ -38,4 +38,4 @@ "CharsetID": "04B0" } } -} \ No newline at end of file +} diff --git a/color_unix.go b/color_unix.go index 8a2fc1e..0129c4e 100644 --- a/color_unix.go +++ b/color_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin,!js +// +build !windows,!darwin package zenity diff --git a/entry_unix.go b/entry_unix.go index 9f51e88..373fefc 100644 --- a/entry_unix.go +++ b/entry_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin,!js +// +build !windows,!darwin package zenity diff --git a/file_unix.go b/file_unix.go index c1a5074..f323645 100644 --- a/file_unix.go +++ b/file_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin,!js +// +build !windows,!darwin package zenity diff --git a/internal/zenutil/env_unix.go b/internal/zenutil/env_unix.go index 9cd9e04..154e71e 100644 --- a/internal/zenutil/env_unix.go +++ b/internal/zenutil/env_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin,!js +// +build !windows,!darwin // Package zenutil is internal. DO NOT USE. package zenutil diff --git a/internal/zenutil/progress_unix.go b/internal/zenutil/progress_unix.go index 5706b23..eb2040c 100644 --- a/internal/zenutil/progress_unix.go +++ b/internal/zenutil/progress_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!js +// +build !windows package zenutil diff --git a/internal/zenutil/run_unix.go b/internal/zenutil/run_unix.go index b270340..e151c29 100644 --- a/internal/zenutil/run_unix.go +++ b/internal/zenutil/run_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin,!js +// +build !windows,!darwin package zenutil diff --git a/list_unix.go b/list_unix.go index c7de987..2c18966 100644 --- a/list_unix.go +++ b/list_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin,!js +// +build !windows,!darwin package zenity diff --git a/msg_unix.go b/msg_unix.go index 12f647d..c3c0a91 100644 --- a/msg_unix.go +++ b/msg_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin,!js +// +build !windows,!darwin package zenity diff --git a/notify_unix.go b/notify_unix.go index 2f3a47d..5c040d6 100644 --- a/notify_unix.go +++ b/notify_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin,!js +// +build !windows,!darwin package zenity diff --git a/progress_unix.go b/progress_unix.go index 5be2ed2..50c29de 100644 --- a/progress_unix.go +++ b/progress_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin,!js +// +build !windows,!darwin package zenity diff --git a/pwd_unix.go b/pwd_unix.go index 135ffdc..a901443 100644 --- a/pwd_unix.go +++ b/pwd_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin,!js +// +build !windows,!darwin package zenity diff --git a/util_unix.go b/util_unix.go index 1bc15e0..bad2a29 100644 --- a/util_unix.go +++ b/util_unix.go @@ -1,4 +1,4 @@ -// +build !windows,!js +// +build !windows package zenity