From e698fc6479e91510ccaeaa9d02f6433f3c1da052 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 22 Mar 2024 11:46:12 +0100 Subject: [PATCH] add build instructions for windows on linux --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 7db1836..e04be7b 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,16 @@ cd outfly cargo run ``` +## Building for Windows on Linux + +``` +rustup target add x86_64-pc-windows-gnu +pacman -S mingw-w64-toolchain # on ArchLinux. other distros have their equivalent package +cargo build --target=x86_64-pc-windows-gnu --release +``` + +More information here: https://bevy-cheatbook.github.io/setup/cross/linux-windows.html + # Credits - https://pixabay.com/sound-effects/typosonic-typing-192811