Skip to content

Commit

Permalink
add script for compiling application to multiple platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
mbedded committed Jan 27, 2021
1 parent 29be904 commit f719031
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions compile.sh
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/*

0 comments on commit f719031

Please sign in to comment.