From 7cb2dc86e2893f5460419b2c368e20064b92ce5d Mon Sep 17 00:00:00 2001 From: core Date: Fri, 15 Dec 2023 23:20:35 -0500 Subject: [PATCH] Update build_windows.sh Signed-off-by: e3team Git Services --- build_windows.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build_windows.sh b/build_windows.sh index 6bddd87..f29384f 100755 --- a/build_windows.sh +++ b/build_windows.sh @@ -1,18 +1,18 @@ #!/bin/bash set -e -cargo build --target x86_64-pc-windows-gnu --release --bin tfclient -rm -rf target/x86_64-pc-windows-gnu/release/tfclient_dist/ -mkdir -p target/x86_64-pc-windows-gnu/release/tfclient_dist/ -cp target/x86_64-pc-windows-gnu/release/tfclient.exe target/x86_64-pc-windows-gnu/release/tfclient_dist/tfclient.exe +cargo build --target x86_64-pc-windows-gnu --release-ci --bin tfclient +rm -rf target/x86_64-pc-windows-gnu/release-ci/tfclient_dist/ +mkdir -p target/x86_64-pc-windows-gnu/release-ci/tfclient_dist/ +cp target/x86_64-pc-windows-gnu/release-ci/tfclient.exe target/x86_64-pc-windows-gnu/release-ci/tfclient_dist/tfclient.exe echo "[*] Downloading WinTun" -mkdir -p target/x86_64-pc-windows-gnu/release/tfclient_dist/dist/windows/ +mkdir -p target/x86_64-pc-windows-gnu/release-ci/tfclient_dist/dist/windows/ wget https://www.wintun.net/builds/wintun-0.14.1.zip -O /tmp/wintun.zip echo "[*] Unzipping WinTun" -unzip -d target/x86_64-pc-windows-gnu/release/tfclient_dist/dist/windows/ /tmp/wintun.zip +unzip -d target/x86_64-pc-windows-gnu/release-ci/tfclient_dist/dist/windows/ /tmp/wintun.zip echo "[*] Copying nebula.dll" -cp target/x86_64-pc-windows-gnu/release/nebula.dll target/x86_64-pc-windows-gnu/release/tfclient_dist/nebula.dll +cp target/x86_64-pc-windows-gnu/release-ci/nebula.dll target/x86_64-pc-windows-gnu/release-ci/tfclient_dist/nebula.dll echo "[*] Building zip bundle" -cd target/x86_64-pc-windows-gnu/release +cd target/x86_64-pc-windows-gnu/release-ci zip -r tfclient.zip tfclient_dist/* cd ../../../ echo "[*] Windows production build success!"