diff --git a/src/systray/NOTES.txt b/src/systray/NOTES.txt index 3bd6f2e..e5e817f 100644 --- a/src/systray/NOTES.txt +++ b/src/systray/NOTES.txt @@ -9,3 +9,4 @@ hash: changes: -removed `getlantern/golog` dependency +-prevent from compiling in linux diff --git a/src/systray/systray_linux.c b/src/systray/_systray_linux.c similarity index 100% rename from src/systray/systray_linux.c rename to src/systray/_systray_linux.c diff --git a/src/systray/systray.go b/src/systray/systray.go index 086c6c2..aa8068f 100644 --- a/src/systray/systray.go +++ b/src/systray/systray.go @@ -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. */ diff --git a/src/systray/systray_linux.go b/src/systray/systray_linux.go index 1f508c7..7c38433 100644 --- a/src/systray/systray_linux.go +++ b/src/systray/systray_linux.go @@ -1,3 +1,5 @@ +// +build never + package systray /* diff --git a/src/systray/systray_nonwindows.go b/src/systray/systray_nonwindows.go index 5f6b90b..178b1b1 100644 --- a/src/systray/systray_nonwindows.go +++ b/src/systray/systray_nonwindows.go @@ -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