mirror of
https://github.com/arnaucube/md-live-server.git
synced 2026-02-07 03:46:40 +01:00
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:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
bin
|
||||||
|
md-live-server
|
||||||
12
compile.sh
Executable file
12
compile.sh
Executable 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
4
go.mod
@@ -1,6 +1,6 @@
|
|||||||
module md-live-server
|
module md-live-server
|
||||||
|
|
||||||
go 1.14
|
go 1.19
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/fatih/color v1.9.0
|
github.com/fatih/color v1.9.0
|
||||||
@@ -9,3 +9,5 @@ require (
|
|||||||
github.com/gorilla/mux v1.7.4
|
github.com/gorilla/mux v1.7.4
|
||||||
github.com/gorilla/websocket v1.4.2
|
github.com/gorilla/websocket v1.4.2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
require golang.org/x/sys v0.10.0 // indirect
|
||||||
|
|||||||
2
go.sum
2
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-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 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4=
|
||||||
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
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=
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "v0_20230626"
|
const version = "v0_20230804"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
upgrader = websocket.Upgrader{
|
upgrader = websocket.Upgrader{
|
||||||
|
|||||||
BIN
md-live-server
BIN
md-live-server
Binary file not shown.
Reference in New Issue
Block a user