Update instructions for building and running example, closes #134

This commit is contained in:
Ox Cart
2020-03-24 16:20:34 -05:00
parent beec733178
commit d3ab4fd25d
+9 -1
View File
@@ -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: