Update build_windows.sh
/ build (push) Successful in 43s Details
/ build_x64 (push) Successful in 5m47s Details
/ build_arm64 (push) Successful in 2m37s Details
/ build_win64 (push) Failing after 2m46s Details

Signed-off-by: e3team Git Services <git@e3t.cc>
This commit is contained in:
core 2023-12-15 23:20:35 -05:00 committed by e3team Git Services
parent 5f6b3fde83
commit 7cb2dc86e2
Signed by: e3team Git Services
GPG Key ID: 997B1E1ADD663479
1 changed files with 8 additions and 8 deletions

View File

@ -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!"