Clarify protoc steps (#69)

* Clarify protoc steps

* Update README.md
This commit is contained in:
Michael Thomsen 2018-03-23 11:11:45 +01:00 committed by GitHub
parent d9c6f6ed77
commit c914f67c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 7 deletions

View File

@ -31,16 +31,19 @@ If you have made changes to the message or service definition in
you will need to have protoc version 3.0.0 or higher and the Dart protoc plugin
version 0.7.9 or higher on your PATH.
To install protoc, see the instructions on
[the Protocol Buffers website](https://developers.google.com/protocol-buffers/).
To install protoc with Dart support, take these steps:
The easiest way to get the Dart protoc plugin is by running
1. Install the `protoc` matching your development operating system from
[the Protocol Buffers releases page](https://github.com/google/protobuf/releases)
(e.g. `protoc-3.5.1-osx-x86_64.zip` for macOS).
1. Get the Dart protoc plugin is by running
```sh
$ pub global activate protoc_plugin
```
and follow the directions to add `~/.pub-cache/bin` to your PATH, if you haven't
1. Add `~/.pub-cache/bin` to your PATH, if you haven't
already done so.
You can now regenerate the Dart files by running