-
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.
Changed build script to make file, handled file.Close() error
- Loading branch information
1 parent
0daf0ff
commit d291f1d
Showing
3 changed files
with
41 additions
and
19 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,30 @@ | ||
BIN_DIR = ./builds/ | ||
BIN_NAME = grade-tracker | ||
SRC = grade-tracker.go | ||
|
||
all: linux-amd64 linux-arm64 windows-amd64 windows-arm64 mac-amd64 mac-arm64 | ||
|
||
linux: linux-amd64 linux-arm64 | ||
|
||
windows: windows-amd64 windows-arm64 | ||
|
||
mac: mac-amd64 mac-arm64 | ||
|
||
linux-amd64: | ||
env GOOS=linux GOARCH=amd64 go build -o $(BIN_DIR)$(BIN_NAME)-linux-amd64 $(SRC) | ||
|
||
linux-arm64: | ||
env GOOS=linux GOARCH=arm64 go build -o $(BIN_DIR)$(BIN_NAME)-linux-arm64 $(SRC) | ||
|
||
windows-amd64: | ||
env GOOS=windows GOARCH=amd64 go build -o $(BIN_DIR)$(BIN_NAME)-win-amd64.exe $(SRC) | ||
|
||
windows-arm64: | ||
env GOOS=windows GOARCH=arm64 go build -o $(BIN_DIR)$(BIN_NAME)-win-arm64.exe $(SRC) | ||
|
||
mac-amd64: | ||
env GOOS=darwin GOARCH=amd64 go build -o $(BIN_DIR)$(BIN_NAME)-mac-amd64 $(SRC) | ||
|
||
mac-arm64: | ||
env GOOS=darwin GOARCH=arm64 go build -o $(BIN_DIR)$(BIN_NAME)-mac-arm64 $(SRC) | ||
|
This file was deleted.
Oops, something went wrong.
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