mirror of
https://github.com/wgtunnel/desktop.git
synced 2026-10-09 14:40:14 -07:00
* initial v2 migration Migrate to nucleus, graalvm builds, new core backend * Update winsw * chore: trigger window build * ci: fix jdk conflict * ci: trigger windows build * chore: bump core to 1.5.3 * ci: switch to nucleus fork * ci: fix quotes * ci: fix windows build * ci: windows fix missing mingw32 * ci: fix mingw setup for windows * ci: fix winsw build * fix: winsw build error * fix: building keyring module on windows * fix: keyring build for windows * build: fix service install * build: add nsis icons, fix daemon and service wrapper inclusion * build: fix bmp paths * build: fix lincense * build: fix winsw paths * build: fix nsis installer script for admin checks * refactor: wintun moved to core Fixe nsis images * fix lang * fix: daemon sync UX and disable daemon settings with messaging Bump core for graalvm fix * fix: windows native linker issue in core, dev daemon script after nucleus migration * fix: ktor logging in daemon and core bump for windows cgo long fix * refactor: user facing strings to res * fix: add wintun.dlls and packaging * fix: both proxy clients disabled handling * fix: ui and windows build changes * fix: daemon required settings * refactor: remove mode icon, waiting for stats * refactor: ui improvements and dns validator integration * refactor: request active tunnel restart on settings changes when tunnel active * refactor: better theme integration, auto tunnel status display, config name header comment * fix: ui changes, logger fixes, install scripts, toasts, daemon sync * feat: add update checker and tracking * refactor: display mode in footer and proxy servers in expanded tunnel row * fix: windows WinSW logging integration * fix: windows log view, refactor daemon logging * fix: update docs, add apt repo, CI fixes, windows daemon logs fix
28 lines
978 B
Bash
Executable File
28 lines
978 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Go to the real project root no matter where the script is called from
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$(dirname "$SCRIPT_DIR")"
|
|
|
|
export WGTUNNEL_VARIANT="${WGTUNNEL_VARIANT:-debug}"
|
|
|
|
echo "Building daemon as normal user (variant=$WGTUNNEL_VARIANT)..."
|
|
mapfile -t DEV_RUN_INFO < <(./gradlew -q :daemon:printDevRunInfo | tail -n 3)
|
|
JAVA_BIN="${DEV_RUN_INFO[0]}"
|
|
read -r -a JVM_ARGS <<<"${DEV_RUN_INFO[1]}"
|
|
CLASSPATH="${DEV_RUN_INFO[2]}"
|
|
|
|
RUNTIME_DIR="/run/wgtunnel-${WGTUNNEL_VARIANT}"
|
|
CACHE_DIR="/var/lib/wgtunnel-${WGTUNNEL_VARIANT}"
|
|
if [ "$WGTUNNEL_VARIANT" = "release" ]; then
|
|
RUNTIME_DIR="/run/wgtunnel"
|
|
CACHE_DIR="/var/lib/wgtunnel"
|
|
fi
|
|
|
|
echo "Starting debug daemon with sudo (socket $RUNTIME_DIR/daemon.sock)..."
|
|
sudo mkdir -p "$RUNTIME_DIR" "$CACHE_DIR"
|
|
sudo WGTUNNEL_VARIANT="$WGTUNNEL_VARIANT" \
|
|
"$JAVA_BIN" "${JVM_ARGS[@]}" -cp "$CLASSPATH" \
|
|
com.zaneschepke.wireguardautotunnel.daemon.MainKt "$@"
|