File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # This script partly automates creation of gopher_check binaries for new releases.
4+
5+ createBinaries () {
6+ read -p " enter the current semantic version number: " version
7+ echo " creating binaries for version: ${version} "
8+ mkdir " ./binaries"
9+ versionPath=" ./binaries/${version} "
10+ mkdir " ${versionPath} "
11+
12+ mkdir " ${versionPath} /mac"
13+ env GOARCH=amd64 GOOS=darwin go build -o " ${versionPath} /mac/gopher_check"
14+ zip " ${versionPath} /mac/gopher_check-${version} -mac-amd64.zip" " ${versionPath} /mac/gopher_check"
15+
16+ mkdir " ${versionPath} /windows"
17+ env GOARCH=amd64 GOOS=windows go build -o " ${versionPath} /windows/gopher_check.exe"
18+ zip " ${versionPath} /windows/gopher_check-${version} -windows-amd64.zip" " ${versionPath} /windows/gopher_check.exe"
19+
20+ mkdir " ${versionPath} /linux"
21+ env GOARCH=amd64 GOOS=linux go build -o " ${versionPath} /linux/gopher_check"
22+ zip " ${versionPath} /linux/gopher_check-${version} -linux-amd64.zip" " ${versionPath} /linux/gopher_check"
23+ }
24+
25+ createBinaries
You can’t perform that action at this time.
0 commit comments