Add new client test script, fix dependency installer.

This commit is contained in:
Captain ALM 2021-03-19 18:52:32 +00:00
parent 499d86bed3
commit 59a9ddecad
2 changed files with 8 additions and 1 deletions

View File

@ -30,7 +30,7 @@ if [ "$(go version | head -c 13)" == "go version go" ]; then
# Build and copy binary to bin directory # Build and copy binary to bin directory
echo "Installing simple-vpn" echo "Installing simple-vpn"
go build go build
sudo cp ./simple-vpn /usr/bin/ -i sudo cp ./simple-vpn /usr/bin/
cd .. cd ..
# Remove repository # Remove repository

7
test-client Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
echo "[warning] NEVER launch this script as sudo!"
echo "[info] Copying Client"
sudo cp MelonVPNClient/bin/Release/MelonVPNClient.exe /usr/lib/melon-vpn/MelonVPNClient2.exe
sudo cp MelonVPNClient/bin/Release/MelonVPNClient.exe.config /usr/lib/melon-vpn/MelonVPNClient2.exe.config
echo "[info] Starting Client"
mono /usr/lib/melon-vpn/MelonVPNClient2.exe