update readme with linux build windows

master
bel 2023-03-25 19:21:46 -06:00
parent 7df4d09553
commit 9073658e12
2 changed files with 9 additions and 1 deletions

View File

@ -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 ./
``` ```

View File

@ -0,0 +1 @@
../../../../rusty-pipe.d/target/x86_64-pc-windows-gnu/release/rusty-pipe.exe