Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GOMOBILE_PATH=~/go/bin/gomobile
wasm: Makefile
GOOS=js GOARCH=wasm go build -v -o $(TARGET).wasm -ldflags="-s -w"

linux: Makefile
linux darwin: Makefile
go build -v -o $(TARGET) -ldflags="-s -w"

windows: Makefile
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build linux || windows
//go:build linux || windows || darwin

// https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md
// $ go mod init oddstream.games/gosol
Expand Down
16 changes: 16 additions & 0 deletions sol/baize_darwin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package sol

import (
"log"
"os/exec"
)

func (b *Baize) Wikipedia() {
var cmd *exec.Cmd = exec.Command("open", b.script.Info().wikipedia)
if cmd != nil {
err := cmd.Start()
if err != nil {
log.Println(err)
}
}
}
2 changes: 1 addition & 1 deletion sol/json.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build linux || windows || android
//go:build linux || windows || android || darwin

package sol

Expand Down