-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support latency and resources usage check
- Loading branch information
Showing
25 changed files
with
496 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/releases | ||
/built | ||
/tools | ||
/.idea | ||
/Config.json | ||
dist/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
statik -m -src="./web/dist" -f -dest="./server/embed" -p web -ns web | ||
mkdir ./releases | ||
|
||
|
||
|
||
export GOOS=linux | ||
|
||
export GOARCH=arm | ||
go build -ldflags "-s -w" -o ./releases/server_linux_arm Spark/Server | ||
go build -ldflags "-s -w" -tags=jsoniter -o ./releases/server_linux_arm Spark/server | ||
export GOARCH=arm64 | ||
go build -ldflags "-s -w" -o ./releases/server_linux_arm64 Spark/Server | ||
go build -ldflags "-s -w" -tags=jsoniter -o ./releases/server_linux_arm64 Spark/server | ||
export GOARCH=386 | ||
go build -ldflags "-s -w" -o ./releases/server_linux_i386 Spark/Server | ||
go build -ldflags "-s -w" -tags=jsoniter -o ./releases/server_linux_i386 Spark/server | ||
export GOARCH=amd64 | ||
go build -ldflags "-s -w" -o ./releases/server_linux_amd64 Spark/Server | ||
go build -ldflags "-s -w" -tags=jsoniter -o ./releases/server_linux_amd64 Spark/server | ||
|
||
|
||
|
||
export GOOS=windows | ||
|
||
export GOARCH=arm | ||
go build -ldflags "-s -w" -o ./releases/server_windows_arm Spark/Server | ||
go build -ldflags "-s -w" -tags=jsoniter -o ./releases/server_windows_arm.exe Spark/server | ||
export GOARCH=arm64 | ||
go build -ldflags "-s -w" -o ./releases/server_windows_arm64 Spark/Server | ||
go build -ldflags "-s -w" -tags=jsoniter -o ./releases/server_windows_arm64.exe Spark/server | ||
export GOARCH=386 | ||
go build -ldflags "-s -w" -o ./releases/server_windows_i386 Spark/Server | ||
go build -ldflags "-s -w" -tags=jsoniter -o ./releases/server_windows_i386.exe Spark/server | ||
export GOARCH=amd64 | ||
go build -ldflags "-s -w" -o ./releases/server_windows_amd64 Spark/Server | ||
go build -ldflags "-s -w" -tags=jsoniter -o ./releases/server_windows_amd64.exe Spark/server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.