Update README.md

This commit is contained in:
Kasper 2020-11-26 00:09:20 +01:00
parent 5a7ec8b196
commit fff5e85cb4

View File

@ -184,14 +184,13 @@ Nice list of units: https://support.google.com/websearch/answer/3284611
``` ```
cargo install cross cargo install cross
``` ```
3. Build. `<target>` is the platform you're building for: 3. Build for x86_64 macOS, Linux and Windows:
```sh ```sh
cross build --release --target <target> cross build --release --target x86_64-apple-darwin && cross build --release --target x86_64-unknown-linux-musl && cross build --release --target x86_64-pc-windows-gnu
``` ```
- macOS target: `x86_64-apple-darwin` (Only works on macOS) - Note that building for `x86_64-apple-darwin` only works on macOS
- Linux target: `x86_64-unknown-linux-musl` - For more targets, check out [the targets `cross` supports](https://github.com/rust-embedded/cross#supported-targets)
- Windows target: `x86_64-pc-windows-gnu` - If you run `cross build` in parallel, you might get a `cargo not found` error
- In case you want to compile for more targets, check out [the targets `cross` supports](https://github.com/rust-embedded/cross#supported-targets)
The compiled binaries will now be available inside `target/<target>/release/`. The filename will be either `cpc` or `cpc.exe`. The compiled binaries will now be available inside `target/<target>/release/`. The filename will be either `cpc` or `cpc.exe`.
### Releasing a new version ### Releasing a new version