Updated build for avoiding virus scan

This commit is contained in:
Martino Ferrari
2026-03-06 13:39:54 +01:00
parent 0d2e5c521a
commit 34dcfc2058
8 changed files with 35 additions and 9 deletions

View File

@@ -3,13 +3,8 @@
# Ensure the Windows target is installed
rustup target add x86_64-pc-windows-gnu
# Check for mingw-w64
if ! command -v x86_64-w64-mingw32-gcc &> /dev/null
then
echo "Error: x86_64-w64-mingw32-gcc not found."
echo "Install it via your package manager (e.g., sudo apt install mingw-w64)"
exit 1
fi
# 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