You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
967 B
20 lines
967 B
2 years ago
|
all: server client
|
||
|
mkdir -p bin
|
||
|
mv spolitewareServer* bin
|
||
|
mv spolitewareClient* bin
|
||
|
|
||
|
server:
|
||
|
cd src/server && go build && mv spolitewareServer ../../
|
||
|
|
||
|
client:
|
||
|
cd src/client && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build && mv spolitewareClient ../../spolitewareClient_linux_amd64
|
||
|
cd src/client && CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build && mv spolitewareClient ../../spolitewareClient_darwin_amd64
|
||
|
cd src/client && CGO_ENABLED=0 GOOS=windows GOARCH=386 go build && mv spolitewareClient.exe ../../spolitewareClient_windows_x32.exe
|
||
|
cd src/client && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build && mv spolitewareClient.exe ../../spolitewareClient_windows_amd64.exe
|
||
|
|
||
|
release: client
|
||
|
mkdir -p release/spoliteware
|
||
|
cp LICENSE release/spoliteware
|
||
|
cd src/server && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build && mv spolitewareServer ../../release/spoliteware
|
||
|
mv spolitewareClient* release/spoliteware
|
||
|
cd release && zip -r spoliteware spoliteware
|