Skip to content

Commit

Permalink
from now on release two binaries: one for Linux amd64 and one for Dar…
Browse files Browse the repository at this point in the history
…win amd64
  • Loading branch information
xmik committed Apr 22, 2019
1 parent b1ac511 commit 77b99de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
3 changes: 2 additions & 1 deletion tasks
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]:ai-traders/dojo.git
Expand Down

0 comments on commit 77b99de

Please sign in to comment.