Skip to content

Commit

Permalink
add build bat
Browse files Browse the repository at this point in the history
  • Loading branch information
huzhao37 committed Jul 8, 2020
1 parent cf30233 commit 3712a7e
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build/build_linux.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@echo off
@color 06


SET GOOS=linux

SET GOARCH=amd64

go build -o ../build/receiver ../receiver/main.go

go build -o ../build/send ../send/main.go


pausego
15 changes: 15 additions & 0 deletions build/build_windows.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@echo off
@color 06

SET CGO_ENABLED=0

SET GOOS=windows

SET GOARCH=amd64

go build -o ../build/receiver.exe ../receiver/main.go

go build -o ../build/send.exe ../send/main.go


pause
Binary file added build/receiver
Binary file not shown.
Binary file added build/receiver.exe
Binary file not shown.
Binary file added build/send
Binary file not shown.
Binary file added build/send.exe
Binary file not shown.

0 comments on commit 3712a7e

Please sign in to comment.