Updated build for avoiding virus scan
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user