mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-06 08:14:07 +00:00
updated build guide
This commit is contained in:
+8
-8
@@ -1,12 +1,6 @@
|
||||
## Build Standalone Binaries
|
||||
|
||||
### Build Docker Image
|
||||
|
||||
```bash
|
||||
docker build -t shadowsocks-rust:x86_64-unknown-linux-musl -f Dockerfile.x86_64-unknown-linux-musl .
|
||||
```
|
||||
|
||||
### Build Binaries
|
||||
### Build with `cross`
|
||||
|
||||
- Install [`cross`](https://github.com/rust-embedded/cross)
|
||||
|
||||
@@ -18,4 +12,10 @@ cargo install cross
|
||||
|
||||
```bash
|
||||
cross build --target x86_64-unknown-linux-musl
|
||||
```
|
||||
```
|
||||
|
||||
### Predefined build routines
|
||||
|
||||
- `build-release`: Build binaries with `cross` and packages outputs into `release` folder
|
||||
- `build-host-release`: Build binaries with host's Rust toolchain. *NIX shell script
|
||||
- `build-host-release.ps1`: Build binaries with host's Rust toolchain. PowerShell script
|
||||
|
||||
Reference in New Issue
Block a user