17 lines
815 B
Bash
Executable File
17 lines
815 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
cargo build --target x86_64-pc-windows-gnu --profile 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-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-ci/tfclient_dist/dist/windows/ /tmp/wintun.zip
|
|
echo "[*] Building zip bundle"
|
|
cd target/x86_64-pc-windows-gnu/release-ci
|
|
zip -r tfclient.zip tfclient_dist/*
|
|
cd ../../../
|
|
echo "[*] Windows production build success!"
|