From 23cf21c98d0c7d3236df5f08c570055f913ec71f Mon Sep 17 00:00:00 2001 From: Casper Rogild Storm Date: Wed, 28 Jun 2023 15:59:36 +0200 Subject: [PATCH] update build-windows.sh --- scripts/build-windows.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/build-windows.sh b/scripts/build-windows.sh index 68e64b649..a5b6e7ac2 100644 --- a/scripts/build-windows.sh +++ b/scripts/build-windows.sh @@ -1,5 +1,8 @@ #!/bin/bash +EXE_NAME="halloy.exe" +TARGET="x86_64-pc-windows-msvc" # build binary -rustup target add x86_64-pc-windows-msvc -cargo build --release --target=x86_64-pc-windows-msvc +rustup target add $TARGET +cargo build --release --target=$TARGET +cp -fp target/$TARGET/release/$EXE_NAME target/release