From d3ab4fd25d9930fa53fcf79ab3c49e32aa6fd7da Mon Sep 17 00:00:00 2001 From: Ox Cart Date: Tue, 24 Mar 2020 16:20:23 -0500 Subject: [PATCH] Update instructions for building and running example, closes #134 --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 89d832f..53c484b 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,15 @@ Have go v1.12+ or higher installed? Here's an example to get started on macOS: ```sh git clone https://github.com/getlantern/systray -env GO111MODULE=on go run systray/example/main.go +cd example +env GO111MODULE=on go build +./example +``` + +On Windows, you should build like this: + +``` +env GO111MODULE=on go build -ldflags "-H=windowsgui" ``` The following text will then appear on the console: