-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script for compiling application to multiple platforms
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 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,22 @@ | ||
FILE=Main.go | ||
|
||
# Windows | ||
GOOS=windows GOARCH=amd64 go build -o win-amd64/pdfmerge.exe $FILE | ||
GOOS=windows GOARCH=386 go build -o win-386/pdfmerge.exe $FILE | ||
|
||
# Linux | ||
GOOS=linux GOARCH=amd64 go build -o linux-amd64/pdfmerge $FILE | ||
GOOS=linux GOARCH=386 go build -o linux-386/pdfmerge $FILE | ||
|
||
# Mac OS | ||
GOOS=darwin GOARCH=amd64 go build -o darwin-amd64/pdfmerge $FILE | ||
|
||
|
||
# Zip those files and folders | ||
zip win-amd64.zip win-amd64/* | ||
zip win-386.zip win-386/* | ||
|
||
zip linux-amd64.zip linux-amd64/* | ||
zip linux-386.zip linux-386/* | ||
|
||
zip darwin-amd64.zip darwin-amd64/* |