fix(release): stub tray for freebsd builds without cgo

This commit is contained in:
wenjie 2026-03-17 20:06:20 +08:00
parent 502d3624b0
commit f4785ba61c
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,4 @@
//go:build !darwin || cgo //go:build (!darwin && !freebsd) || cgo
package main package main

View file

@ -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() {