File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 1- # build
2- env GOOS=darwin GOARCH=amd64 go build -o gedcom-parser.darwin.amd64
3- env GOOS=darwin GOARCH=arm64 go build -o gedcom-parser.darwin.arm64
4- env GOOS=linux GOARCH=amd64 go build -o gedcom-parser.linux.amd64
5- env GOOS=windows GOARCH=amd64 go build -o gedcom-parser.windows.amd64
1+ declare -a os=(" darwin" " darwin" " linux" " windows" )
2+ declare -a arch=(" amd64" " arm64" " amd64" " amd64" )
63
7- # zip
8- 7z a gedcom-parser.darwin.amd64.7z gedcom-parser.darwin.amd64
9- 7z a gedcom-parser.darwin.arm64.7z gedcom-parser.darwin.arm64
10- 7z a gedcom-parser.linux.amd64.7z gedcom-parser.linux.amd64
11- 7z a gedcom-parser.windows.amd64.7z gedcom-parser.windows.amd64
4+ for i in " ${os[@]} " ; do
5+ env GOOS=" ${os[$i]} " GOARCH=" ${arch[$i]} " go build -o gedcom-parser." ${os[$i]} " ." ${arch[$i]} "
6+ 7z a gedcom-parser." ${os[$i]} " ." ${arch[$i]} " .7z gedcom-parser." ${os[$i]} " ." ${arch[$i]} "
7+ done
You can’t perform that action at this time.
0 commit comments