-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #291 from cnlh/dev
Fix bugs and optimize functions
- Loading branch information
Showing
47 changed files
with
1,180 additions
and
211 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
language: go | ||
|
||
go: | ||
- "1.13" | ||
- master | ||
services: | ||
- docker | ||
script: | ||
- go test -v ./cmd/nps/ | ||
os: | ||
- linux | ||
before_deploy: | ||
- chmod +x ./build.sh && ./build.sh | ||
|
||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: ${TOKEN} | ||
skip_cleanup: true | ||
file: | ||
- freebsd_386_client.tar.gz | ||
- freebsd_386_server.tar.gz | ||
- freebsd_amd64_client.tar.gz | ||
- freebsd_amd64_server.tar.gz | ||
- freebsd_arm_client.tar.gz | ||
- freebsd_arm_server.tar.gz | ||
- linux_386_client.tar.gz | ||
- linux_386_server.tar.gz | ||
- linux_amd64_client.tar.gz | ||
- linux_amd64_server.tar.gz | ||
- linux_arm64_client.tar.gz | ||
- linux_arm64_server.tar.gz | ||
- linux_arm_v5_client.tar.gz | ||
- linux_arm_v6_client.tar.gz | ||
- linux_arm_v7_client.tar.gz | ||
- linux_arm_v5_server.tar.gz | ||
- linux_arm_v6_server.tar.gz | ||
- linux_arm_v7_server.tar.gz | ||
- linux_mips64le_client.tar.gz | ||
- linux_mips64le_server.tar.gz | ||
- linux_mips64_client.tar.gz | ||
- linux_mips64_server.tar.gz | ||
- linux_mipsle_client.tar.gz | ||
- linux_mipsle_server.tar.gz | ||
- linux_mips_client.tar.gz | ||
- linux_mips_server.tar.gz | ||
- macos_client.tar.gz | ||
- macos_server.tar.gz | ||
- win_386_client.tar.gz | ||
- win_386_server.tar.gz | ||
- win_amd64_client.tar.gz | ||
- win_amd64_server.tar.gz | ||
- npc_syno.spk | ||
- npc_sdk.tar.gz | ||
on: | ||
tags: true | ||
all_branches: true |
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 |
---|---|---|
@@ -0,0 +1,136 @@ | ||
#!/bin/bash | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf linux_amd64_client.tar.gz npc conf/npc.conf | ||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf linux_386_client.tar.gz npc conf/npc.conf | ||
|
||
CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf freebsd_386_client.tar.gz npc conf/npc.conf | ||
|
||
CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf freebsd_amd64_client.tar.gz npc conf/npc.conf | ||
|
||
CGO_ENABLED=0 GOOS=freebsd GOARCH=arm go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf freebsd_arm_client.tar.gz npc conf/npc.conf | ||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf linux_arm_client.tar.gz npc conf/npc.conf | ||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf linux_arm64_client.tar.gz npc conf/npc.conf | ||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf linux_mips64_client.tar.gz npc conf/npc.conf | ||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf linux_mips64le_client.tar.gz npc conf/npc.conf | ||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf linux_mipsle_client.tar.gz npc conf/npc.conf | ||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf linux_mips_client.tar.gz npc conf/npc.conf | ||
|
||
|
||
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf win_386_client.tar.gz npc.exe conf/npc.conf | ||
|
||
|
||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf win_amd64_client.tar.gz npc.exe conf/npc.conf | ||
|
||
|
||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go | ||
upx npc | ||
tar -czvf macos_client.tar.gz npc conf/npc.conf | ||
|
||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf linux_amd64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf linux_386_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf linux_arm_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf linux_arm64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
|
||
CGO_ENABLED=0 GOOS=freebsd GOARCH=arm go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf freebsd_arm_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
|
||
CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf freebsd_386_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
|
||
CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf freebsd_amd64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf linux_mips_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf linux_mips64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf linux_mips64le_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
|
||
CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf linux_mipsle_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
|
||
|
||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps | ||
tar -czvf macos_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps | ||
|
||
|
||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps.exe | ||
tar -czvf win_amd64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps.exe | ||
|
||
|
||
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go | ||
upx nps.exe | ||
tar -czvf win_386_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps.exe | ||
|
Oops, something went wrong.