update readme with linux build windows
parent
7df4d09553
commit
9073658e12
|
|
@ -11,9 +11,16 @@
|
||||||
## Distribute `rusty-pipe`
|
## Distribute `rusty-pipe`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# https://www.reddit.com/r/rust/comments/5k8uab/crosscompiling_from_ubuntu_to_windows_with_rustup/
|
||||||
|
(
|
||||||
|
echo '[target.x86_64-pc-windows-gnu]'
|
||||||
|
echo 'linker = "x86_64-w64-mingw32-gcc"'
|
||||||
|
echo 'ar = "x86_64-w64-mingw32-gcc-ar"'
|
||||||
|
) >> $HOME/.cargo/config
|
||||||
|
sudo apt install mingw-w64
|
||||||
rustup target add x86_64-pc-windows-gnu
|
rustup target add x86_64-pc-windows-gnu
|
||||||
echo windows
|
echo windows
|
||||||
cargo build --target x86_64-pc-windows-gnu && ls target/x86_64-pc-windows-gnu/release/rusty-pipe.exe
|
cargo build --release --target x86_64-pc-windows-gnu && ls target/x86_64-pc-windows-gnu/release/rusty-pipe.exe
|
||||||
echo local
|
echo local
|
||||||
cargo install --path ./
|
cargo install --path ./
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../../../../rusty-pipe.d/target/x86_64-pc-windows-gnu/release/rusty-pipe.exe
|
||||||
Loading…
Reference in New Issue