[client] Allow freebsd to build netbird-ui (#3212)

This commit is contained in:
Viktor Liu
2025-01-20 11:02:09 +01:00
committed by GitHub
parent 9f4db0a953
commit c619bf5b0c
5 changed files with 36 additions and 14 deletions

18
client/ui/font_darwin.go Normal file
View File

@ -0,0 +1,18 @@
package main
import (
"os"
log "github.com/sirupsen/logrus"
)
const defaultFontPath = "/Library/Fonts/Arial Unicode.ttf"
func (s *serviceClient) setDefaultFonts() {
if _, err := os.Stat(defaultFontPath); err != nil {
log.Errorf("Failed to find default font file: %v", err)
return
}
os.Setenv("FYNE_FONT", defaultFontPath)
}