-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate binaries #121
Generate binaries #121
Changes from all commits
c36e041
c8e0aa6
1adf628
7729876
70cafb1
beef72a
ad597b6
5ab4334
20ca33a
ebeff45
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
rosetta-cli | ||
bin/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,20 @@ Before diving into the CLI, we recommend taking a look at the Rosetta API Docs: | |
* [Construction API](https://www.rosetta-api.org/docs/construction_api_introduction.html) | ||
|
||
## Install | ||
To install `rosetta-cli` from source, run: | ||
``` | ||
go get github.com/coinbase/rosetta-cli | ||
``` | ||
|
||
To download a binary directly for MacOS and the latest release, run: | ||
``` | ||
curl -L https://github.com/coinbase/rosetta-cli/releases/download/v0.4.1/rosetta-cli-0.4.1-darwin-10.6-amd64 -o rosetta-cli; chmod +x rosetta-cli; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may want to do a |
||
``` | ||
|
||
Otherwise, binaries for other operating systems can be found [here](https://github.com/coinbase/rosetta-cli/releases). | ||
|
||
_Downloading binaries from the Github UI will cause permission errors on Mac._ | ||
|
||
## Usage | ||
``` | ||
CLI for the Rosetta API | ||
|
@@ -379,6 +389,7 @@ Global Flags: | |
* `make test` to run tests | ||
* `make lint` to lint the source code (included generated code) | ||
* `make release` to run one last check before opening a PR | ||
* `make compile version=RELEASE_TAG` to generate binaries | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you mind adding a small section to the README about using binaries and that a script is in progress? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may want to add that it is a known issue to click download on the release: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Turns out curl bypasses this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may want to include this in the README ^^ with a warning to not download on the UI |
||
|
||
### Helper/Handler | ||
Many of the packages use a `Helper/Handler` interface pattern to acquire | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to specify a tag here or do we need to checkout the code we want to compile @juliankoh ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This builds the code locally (as you can see from the . )
We can also build a specific tag but that would be a different command.