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
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

View file

@ -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"
)

View file

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

View file

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

View file

@ -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": "",

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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