mirror of https://github.com/NekoX-Dev/NekoX.git
Update Compilation Guide
This commit is contained in:
parent
2e9f810e4d
commit
9f686460c2
29
README.md
29
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<Full/Mini><Debug/Release/ReleaseNoGcm>`
|
||||
|
||||
|
@ -182,4 +201,4 @@ You can [open an issue to](https://github.com/NekoX-Dev/NekoX/issues/new?&templa
|
|||
<li>JetBrains: for allocating free open-source licences for IDEs</li>
|
||||
</ul>
|
||||
|
||||
[<img src=".github/jetbrains-variant-3.png" width="200"/>](https://jb.gg/OpenSource)
|
||||
[<img src=".github/jetbrains-variant-3.png" width="200"/>](https://jb.gg/OpenSource)
|
||||
|
|
Loading…
Reference in New Issue