fix(release): stub tray for freebsd builds without cgo
This commit is contained in:
parent
502d3624b0
commit
f4785ba61c
2 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
//go:build !darwin || cgo
|
//go:build (!darwin && !freebsd) || cgo
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
//go:build darwin && !cgo
|
//go:build (darwin || freebsd) && !cgo
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
@ -6,6 +6,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
"runtime"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|
@ -13,7 +14,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func runTray() {
|
func runTray() {
|
||||||
logger.Infof("System tray is unavailable in darwin builds without cgo; running without tray")
|
logger.Infof("System tray is unavailable in %s builds without cgo; running without tray", runtime.GOOS)
|
||||||
|
|
||||||
if !*noBrowser {
|
if !*noBrowser {
|
||||||
go func() {
|
go func() {
|
||||||
Loading…
Add table
Reference in a new issue