mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-02 10:33:36 +00:00
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:**
|
**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)
|
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.
|
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
|
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`
|
4. Build native dependencies: `./run init libs`
|
||||||
5. Build external libraries and native code: `./run libs update`
|
5. Build external libraries and native code:
|
||||||
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.
|
For full release:
|
||||||
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.
|
|
||||||
|
`./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>`
|
`./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>
|
<li>JetBrains: for allocating free open-source licences for IDEs</li>
|
||||||
</ul>
|
</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
Block a user