15 lines
413 B
Bash
Executable File
15 lines
413 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Ensure the Windows target is installed
|
|
rustup target add x86_64-pc-windows-gnu
|
|
|
|
# Set the resource compiler for cross-compilation
|
|
export WINDRES=x86_64-w64-mingw32-windres
|
|
|
|
# Build for Windows
|
|
cargo build --release --target x86_64-pc-windows-gnu
|
|
|
|
echo "-----------------------------------"
|
|
echo "Build complete."
|
|
echo "Windows binary: target/x86_64-pc-windows-gnu/release/esp32p4-waveform-gui.exe"
|