Browse Source

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

master v0_20230804
arnaucube 1 year ago
parent
commit
5f870fb32a
6 changed files with 20 additions and 2 deletions
  1. +2
    -0
      .gitignore
  2. +12
    -0
      compile.sh
  3. +3
    -1
      go.mod
  4. +2
    -0
      go.sum
  5. +1
    -1
      main.go
  6. BIN
      md-live-server

+ 2
- 0
.gitignore

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

+ 12
- 0
compile.sh

@ -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

+ 3
- 1
go.mod

@ -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
- 0
go.sum

@ -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=

+ 1
- 1
main.go

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

BIN
md-live-server


Loading…
Cancel
Save