From 6dbe9f5bf3a8d33f183fda24e1960b74deeeede3 Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 21 Jan 2022 21:26:52 -0500 Subject: [PATCH] readme release/cross-compile notes --- .gitignore | 2 +- README.md | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 76fe34d..74f9cdb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ pianobar-rc -pianobar-rc.exe +pianobar-rc-* diff --git a/README.md b/README.md index cb4563a..571d49f 100644 --- a/README.md +++ b/README.md @@ -61,4 +61,25 @@ go build -o pianobar-rc main.go ``` go fmt ./... && go vet ./... && go build -o pianobar-rc main.go -``` \ No newline at end of file +``` + +## Releases + +### 0.1 +Initial release! + +### Cross Compiled Releases +``` +RELEASE=0.1 +osArray=("linux" "darwin") +archArray=("386" "amd64" "arm" "arm64") + +for i in ${!osArray[@]}; do + for j in ${!archArray[@]}; do + + GOOS=${osArray[$i]} GOARCH=${archArray[$j]} go build -o pianobar-rc-${RELEASE}-${osArray[$i]}-${archArray[$j]} main.go + + done +done + +```