Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Windows
A rule-based tunnel for Android.
Saved setup from 12 h ago
Will it work on Windows?
Then run powershell -ExecutionPolicy Bypass -File .\setup.ps1. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: winget install Git.Git. The repo uses git submodules, so the clone fetches them too.
git clone --recurse-submodules https://github.com/MetaCubeX/ClashMetaForAndroid.git cd ClashMetaForAndroid
JDK 21
winget install EclipseAdoptium.Temurin.21.JDK
.\gradlew.bat build -x test
.\gradlew.bat run
Update submodules
git submodule update --init --recursive
Install OpenJDK 11, Android SDK, CMake and Golang
Create local.properties in project root with
sdk.dir=/path/to/android-sdk
(Optional) Custom app package name. Add the following configuration to local.properties.
# config your ownn applicationId, or it will be 'com.github.metacubex.clash'
custom.application.id=com.my.compile.clash
# remove application id suffix, or the applicaion id will be 'com.github.metacubex.clash.alpha'
remove.suffix=true
Create signing.properties in project root with
keystore.path=/path/to/keystore/file
keystore.password=<key store password>
key.alias=<key alias>
key.password=<key password>
Build
./gradlew app:assembleAlphaRelease
APP package name is com.github.metacubex.clash.meta
com.github.kr328.clash.ExternalControlActivity with action com.github.metacubex.clash.meta.action.TOGGLE_CLASHcom.github.kr328.clash.ExternalControlActivity with action com.github.metacubex.clash.meta.action.START_CLASHcom.github.kr328.clash.ExternalControlActivity with action com.github.metacubex.clash.meta.action.STOP_CLASHclash://install-config?url=<encoded URI> or clashmeta://install-config?url=<encoded URI>android-real branch under MetaCubeX/Clash.Meta, which is a merge of the main Alpha branch and android-open.
Alpha branch of the Meta kernel repository.android-open branch of the Meta kernel repository.MetaCubeX/Clash.Meta kernel is updated to a new version, the Update Dependencies actions in this repo will be triggered automatically.
Build Pre-Release actions will compile and publish a PreRelease version.Build Release actions will compile, tag and publish a Release version.
Release Tag with the tag you want to release in the format of v1.2.3.versionName and versionCode in build.gradle.kts will be automatically bumped to the tag you filled above.No reports for Windows yet.
GitManual AI Agent reads the 8 key files and writes a step-by-step guide for Windows. Once written, it's saved for everyone.