Files
apsbps-tools/hmi_gui/build_windows.sh
2026-03-06 13:39:54 +01:00

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"