mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-11-30 00:00:30 +00:00
Extract application configuration and network management from the GUI into easytier-core. Share ApplicationClient between GUI commands and web-client hooks through ManagementHost, while the host retains RPC transport and runtime ownership. Persist Android configurations, desired-enabled IDs, backend options and selection in a versioned native snapshot. Encrypt it with Android Keystore AES-256-GCM, replace it atomically and verify commits. Reload uncertain storage before another mutation. Migrate localStorage only when native state is absent. Remove legacy plaintext only after durable persistence succeeds, and reject unreadable or invalid native data instead of overwriting it with defaults. Separate confirmed runtime effects from persistence and reconciliation warnings. Retain pending intent across RPC reconnects, query actual state after RPC errors and complete stops despite save failures. Finish Android VPN setup after nonfatal preference write failures; keep bootstrap and required configuration failures fatal. Preserve shared Android TUN behavior and serialize native status sampling against start/stop events. Desktop keeps event/localStorage persistence. Service-owned lifecycle, headless tile startup and automatic intent recovery remain follow-up work. Cover migration, uncertain commits, reconnects and VPN reconciliation with regression tests. Android physical-device upgrade, restart and storage-failure validation remains outstanding. Co-authored-by: KKRainbow <5665404+KKRainbow@users.noreply.github.com>
GUI for EasyTier
this is a GUI implementation for EasyTier, based on Tauri2.
Compile
Install prerequisites
apt install npm
npm install -g pnpm
For Desktop (Win/Mac/Linux)
cd ../tauri-plugin-vpnservice
pnpm install
pnpm build
cd ../easytier-web/frontend-lib
pnpm install
pnpm build
cd ../../easytier-gui
pnpm install
pnpm tauri build
For Android
Need to install android SDK / emulator / NDK / Java (easy with android studio)
# For ArchLinux
sudo pacman -Sy sdkmanager
sudo sdkmanager --install platform-tools platforms\;android-34 ndk\;r26 build-tools
export PATH=/opt/android-sdk/platform-tools:$PATH
export ANDROID_HOME=/opt/android-sdk/
export NDK_HOME=/opt/android-sdk/ndk/26.0.10792818/
rustup target add aarch64-linux-android
install java 20
Java version depend on gradle version specified in (easytier-gui\src-tauri\gen\android\build.gradle.kts)
See Gradle compatibility matrix for detail .
pnpm install
pnpm tauri android init
pnpm tauri android build