-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompile.sh
More file actions
executable file
·21 lines (15 loc) · 888 Bytes
/
compile.sh
File metadata and controls
executable file
·21 lines (15 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
echo "Compiling for Windows amd64..."
GOOS=windows GOARCH=amd64 go build -o bin/pgsql-dumper-amd64.exe -ldflags "-X main.Version=$RELEASE_TAG" main.go
echo "Compiling for Windows i386..."
GOOS=windows GOARCH=386 go build -o bin/pgsql-dumper-i386.exe -ldflags "-X main.Version=$RELEASE_TAG" main.go
echo "Compiling for Darwin amd64..."
GOOS=darwin GOARCH=amd64 go build -o bin/pgsql-dumper-amd64-darwin -ldflags "-X main.Version=$RELEASE_TAG" main.go
chmod +x bin/pgsql-dumper-amd64-darwin
echo "Compiling for Linux amd64..."
GOOS=linux GOARCH=amd64 go build -o bin/pgsql-dumper-amd64-linux -ldflags "-X main.Version=$RELEASE_TAG" main.go
chmod +x bin/pgsql-dumper-amd64-linux
echo "Compiling for Linux i386..."
GOOS=linux GOARCH=386 go build -o bin/pgsql-dumper-i386-linux -ldflags "-X main.Version=$RELEASE_TAG" main.go
chmod +x bin/pgsql-dumper-i386-linux
echo "Done!!"