do not build systray in linux

This commit is contained in:
Nazar Kanaev 2022-02-14 00:56:03 +00:00
parent d7253a60b8
commit 4c0726412b
5 changed files with 6 additions and 2 deletions

View File

@ -9,3 +9,4 @@ hash:
changes:
-removed `getlantern/golog` dependency
-prevent from compiling in linux

View File

@ -1,3 +1,5 @@
// +build darwin,windows
/*
Package systray is a cross-platform Go library to place an icon and menu in the notification area.
*/

View File

@ -1,3 +1,5 @@
// +build never
package systray
/*

View File

@ -1,9 +1,8 @@
// +build !windows
// +build darwin
package systray
/*
#cgo linux pkg-config: gtk+-3.0 appindicator3-0.1
#cgo darwin CFLAGS: -DDARWIN -x objective-c -fobjc-arc
#cgo darwin LDFLAGS: -framework Cocoa