update go version & fix go/x/sys dependancy for darwin compilation. add compile.sh and rm binary to upload it as release.

This commit is contained in:
arnaucube
2023-08-04 11:38:49 +02:00
parent 6eca1ef712
commit 5f870fb32a
6 changed files with 20 additions and 2 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
bin
md-live-server

12
compile.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
mkdir -p bin
echo "building linux binaries"
GOOS=linux GOARCH=amd64 go build -o bin/md-live-server-amd64-linux *.go
echo "building windows binaries"
GOOS=windows GOARCH=amd64 go build -o bin/md-live-server-amd64.exe *.go
echo "building macOS binaries"
GOOS=darwin GOARCH=amd64 go build -o bin/md-live-server-amd64-darwin *.go

4
go.mod
View File

@@ -1,6 +1,6 @@
module md-live-server
go 1.14
go 1.19
require (
github.com/fatih/color v1.9.0
@@ -9,3 +9,5 @@ require (
github.com/gorilla/mux v1.7.4
github.com/gorilla/websocket v1.4.2
)
require golang.org/x/sys v0.10.0 // indirect

2
go.sum
View File

@@ -17,3 +17,5 @@ golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5h
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

View File

@@ -13,7 +13,7 @@ import (
"github.com/gorilla/websocket"
)
const version = "v0_20230626"
const version = "v0_20230804"
var (
upgrader = websocket.Upgrader{

Binary file not shown.