From 77b99ded3704b9b801556bfaf2df53639ab46add Mon Sep 17 00:00:00 2001 From: Ewa Czechowska Date: Mon, 22 Apr 2019 17:03:48 +0200 Subject: [PATCH] from now on release two binaries: one for Linux amd64 and one for Darwin amd64 --- .release-it.json | 2 +- CHANGELOG.md | 1 + README.md | 5 ++++- tasks | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.release-it.json b/.release-it.json index c1ea0b9..fbdfdf4 100644 --- a/.release-it.json +++ b/.release-it.json @@ -14,6 +14,6 @@ "releaseNotes": "./tasks generate_release_notes ${version}", "preRelease": true, "tokenRef": "GITHUB_TOKEN", - "assets": ["bin/dojo"] + "assets": ["bin/dojo_linux_amd64", "bin/dojo_darwin_amd64"] } } diff --git a/CHANGELOG.md b/CHANGELOG.md index 3464749..51d3e60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ * cross compile on Linux and Darwin * add Darwin support for verification if shell is interactive, thanks to [#2](https://github.com/ai-traders/dojo/pull/2), [@Eiffel-Alpine](https://github.com/Eiffel-Alpine) +* from now on release two binaries: one for Linux amd64 and one for Darwin amd64 ### 0.3.1 (2019-Feb-04) diff --git a/README.md b/README.md index 468769a..a12252d 100644 --- a/README.md +++ b/README.md @@ -317,7 +317,10 @@ dojo --driver=docker-compose --dcf=./test/test-files/itest-dc.yaml -i=false --im There is only 1 binary file to install: ``` version="0.2.0" -wget -O=/tmp/dojo https://github.com/ai-traders/dojo/releases/download/${version}/dojo +# on Linux: +wget -O=/tmp/dojo https://github.com/ai-traders/dojo/releases/download/${version}/dojo_linux_amd64 +# or on Darwin: +# wget -O=/tmp/dojo https://github.com/ai-traders/dojo/releases/download/${version}/dojo_darwin_amd64 chmod +x /tmp/dojo mv /tmp/dojo /usr/bin/dojo ``` diff --git a/tasks b/tasks index 89ee47e..6273ea1 100755 --- a/tasks +++ b/tasks @@ -69,7 +69,8 @@ const DojoVersion = \"${next_version}\" git push origin "${version}" ;; release_gh) - if [ ! -f bin/dojo ]; then echo "dojo binary does not exist"; exit 1; fi + if [ ! -f bin/dojo_linux_amd64 ]; then echo "dojo_linux_amd64 binary does not exist"; exit 1; fi + if [ ! -f bin/dojo_darwin_amd64 ]; then echo "dojo_darwin_amd64 binary does not exist"; exit 1; fi if [ -z "$GITHUB_TOKEN" ]; then echo "GITHUB_TOKEN is unset"; exit 1; fi version="$(get_last_version_from_whole_changelog ${changelog_file})" git remote add upstream git@github.com:ai-traders/dojo.git