Update build_windows.sh
Signed-off-by: e3team Git Services <git@e3t.cc>
This commit is contained in:
parent
5f6b3fde83
commit
7cb2dc86e2
|
@ -1,18 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
cargo build --target x86_64-pc-windows-gnu --release --bin tfclient
|
cargo build --target x86_64-pc-windows-gnu --release-ci --bin tfclient
|
||||||
rm -rf target/x86_64-pc-windows-gnu/release/tfclient_dist/
|
rm -rf target/x86_64-pc-windows-gnu/release-ci/tfclient_dist/
|
||||||
mkdir -p target/x86_64-pc-windows-gnu/release/tfclient_dist/
|
mkdir -p target/x86_64-pc-windows-gnu/release-ci/tfclient_dist/
|
||||||
cp target/x86_64-pc-windows-gnu/release/tfclient.exe target/x86_64-pc-windows-gnu/release/tfclient_dist/tfclient.exe
|
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"
|
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
|
wget https://www.wintun.net/builds/wintun-0.14.1.zip -O /tmp/wintun.zip
|
||||||
echo "[*] Unzipping WinTun"
|
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"
|
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"
|
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/*
|
zip -r tfclient.zip tfclient_dist/*
|
||||||
cd ../../../
|
cd ../../../
|
||||||
echo "[*] Windows production build success!"
|
echo "[*] Windows production build success!"
|
||||||
|
|
Loading…
Reference in New Issue