Info on patching

This commit is contained in:
ave 2019-01-18 19:04:55 +03:00
parent 5b9a28939b
commit 4220a0851e
No known key found for this signature in database
GPG Key ID: 09356ABAA42C842B
1 changed files with 6 additions and 2 deletions

View File

@ -13,9 +13,13 @@ Discord Android app patches
## Building an patched discord app ## Building an patched discord app
- Get a Discord apk (*cough* [aptoide](https://ws75.aptoide.com/api/7/app/getMeta?package_name=com.discord)), and get the patches you want for that version. If the patches aren't available, you'll have to port them yourself. - Get a Discord apk (*cough* [aptoide](https://ws75.aptoide.com/api/7/app/getMeta?package_name=com.discord)), and get all the necessary patches and the optional patches you want for that version. If the patches aren't available, you'll have to port them yourself.
- Apply the patches you want - Apply the patches (`patch -p1 < <patch name>`).
- Edit `emojireplace.sh` to point to right directories, and apply emoji patches (`bash emojireplace.sh`) - Edit `emojireplace.sh` to point to right directories, and apply emoji patches (`bash emojireplace.sh`)
- Build the new APK (`apktool b com.discord-831`) - Build the new APK (`apktool b com.discord-831`)
- Sign the new APK (`jarsigner -keystore <keystore path> <foldername>/dist/<foldername>.apk <alias>`) - Sign the new APK (`jarsigner -keystore <keystore path> <foldername>/dist/<foldername>.apk <alias>`)
- Get your new APK from `<foldername>/dist/<foldername>.apk`, install and enjoy! - Get your new APK from `<foldername>/dist/<foldername>.apk`, install and enjoy!
## Building patches
`diff -crB -x "dist" Folder1 Folder2 > atmpatch.patch`