diff --git a/README.md b/README.md index 811edfb4d..6b52fac53 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,12 @@ Consider using a Linux VM or dual booting.** **Important:** +0. Checkout all submodules +``` +git submodule init +git submodule update +``` + 1. Install Android SDK and NDK (default location is $HOME/Android/SDK, otherwise you need to specify $ANDROID_HOME for it) It is recommended to use [AndroidStudio](https://developer.android.com/studio) to install. @@ -108,11 +114,24 @@ rustup default $(cat ss-rust/src/main/rust/shadowsocks-rust/rust-toolchain) rustup target install armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android ``` +This step can be skipped if you want to build a `mini` release. + 4. Build native dependencies: `./run init libs` -5. Build external libraries and native code: `./run libs update` -6. Fill out `TELEGRAM_APP_ID` and `TELEGRAM_APP_HASH` in `local.properties` -7. Replace TMessagesProj/google-services.json if you want fcm to work. -8. Replace release.keystore with yours and fill out `ALIAS_NAME`, `KEYSTORE_PASS` and `ALIAS_PASS` in `local.properties` if you want a custom sign key. +5. Build external libraries and native code: + +For full release: + +`./run libs update` + +For mini release: +``` +./run libs v2ray +./run libs native # libtmessages.so +``` + +9. Fill out `TELEGRAM_APP_ID` and `TELEGRAM_APP_HASH` in `local.properties` +10. Replace TMessagesProj/google-services.json if you want fcm to work. +11. Replace release.keystore with yours and fill out `ALIAS_NAME`, `KEYSTORE_PASS` and `ALIAS_PASS` in `local.properties` if you want a custom sign key. `./gradlew assemble` @@ -182,4 +201,4 @@ You can [open an issue to](https://github.com/NekoX-Dev/NekoX/issues/new?&templa
  • JetBrains: for allocating free open-source licences for IDEs
  • -[](https://jb.gg/OpenSource) \ No newline at end of file +[](https://jb.gg/OpenSource)