From 1271cc2ff869ebe7a02cff1da817c8889a6f2db4 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Sun, 6 Jun 2021 23:25:20 +0800 Subject: [PATCH] updated build guide --- build/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build/README.md b/build/README.md index 38a5f0db..b957c7a8 100644 --- a/build/README.md +++ b/build/README.md @@ -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 -``` \ No newline at end of file +``` + +### 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