Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/AGDDoS/AGDDoS
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhu2007 committed Sep 1, 2022
2 parents 7923b7f + 174735d commit dede6f2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ echo Built Windows-x86!
env CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/windows/AGDDoS-arm64.exe ./src/
echo Built Windows-arm64!

env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-H windowsgui -s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/windows/AGDDoS-amd64-hidden.exe ./src/
echo Built Windows-amd64-hidden!
env CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags="-H windowsgui -s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/windows/AGDDoS-x86-hidden.exe ./src/
echo Built Windows-x86-hidden!
env CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -ldflags="-H windowsgui -s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/windows/AGDDoS-arm64-hidden.exe ./src/
echo Built Windows-arm64-hidden!

# Build for Freebzd 🎁
env GOOS=freebsd GOARCH=amd64 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/freebsd/AGDDoS-freebsd-amd64 ./src/
echo Built Freebzd-amd64!
env GOOS=freebsd GOARCH=386 go build -ldflags "-s -w -X main.version=$version -X \"main.timestamp=$timestamp\"" -o ./build/freebsd/AGDDoS-freebsd-x86 ./src/
echo Built Freebzd-386!

# Exit
exit 0
exit 0

0 comments on commit dede6f2

Please sign in to comment.