Build from source
Set up Wails and build and package Kage with embedded Xray.
Kage uses Go, Wails v3, React, and embedded Xray. The Xray revision is pinned in go.mod.
Prerequisites
- Go 1.27 or newer.
- Bun.
- Wails CLI v3.0.0. Keep the CLI, Go module, and
@wailsio/runtimealigned. - Platform build tools listed below.
go install github.com/wailsapp/wails/v3/cmd/wails3@v3.0.0| Platform | Build tools |
|---|---|
| macOS | Xcode Command Line Tools: xcode-select --install. |
| Linux | C toolchain, libgtk-4-dev, and libwebkitgtk-6.0-dev. pkexec is needed at runtime. |
| Windows | WebView2 and NSIS for installer packaging. |
Clone and run
git clone https://github.com/Rigby-Foundation/Kage.git
cd Kage
make devBuild and validate
make build
make test
make vetmake build writes to bin/. For a standalone frontend check:
cd frontend
bun run buildDesktop packages
| Command | Output |
|---|---|
make dmg | bin/Kage.dmg |
make dmg-universal | Universal arm64 + amd64 DMG. |
make linux-packages | DEB, RPM, and AppImage in bin/. |
make package on Windows | Executable and NSIS installer. |
Android builds
Set ANDROID_NDK_HOME for the NDK. APK builds also need JDK 17 and the Android SDK through ANDROID_HOME.
wails3 task android:apk
wails3 task android:package
wails3 task android:run:deviceThese build a debug arm64 APK, release arm64 and x86_64 APKs, and a debug build on a connected device respectively. Release signing is configured through the release workflow’s ANDROID_KEYSTORE_* secrets.
Contributing changes
Frontend calls go through frontend/src/lib/backend.ts to services under internal/app/. Configuration generation and compatibility tests live in internal/xrayconfig/. Kage is licensed under MPL-2.0. See the contribution guide.
iOS builds
On macOS with Xcode installed, build an unsigned IPA. Sign it with the Packet Tunnel entitlement before installing.
wails3 task ios:ipa