From 66330bc7612aec8173e72422e845f385f412cae6 Mon Sep 17 00:00:00 2001 From: 46620 <46620osu@gmail.com> Date: Mon, 20 Jun 2022 01:50:41 -0400 Subject: [PATCH] Update build docs I decided to keep the old folder names/paths with this, I might change in the future. --- BUILDING.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index f39be18..5509be7 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -6,11 +6,11 @@ - Get a keystore, see [here](https://stackoverflow.com/a/14994354/3286892), step 1. - Get apksigner, it's part of android build tools. - If you want Mutant Standard emoji patches, get 72x72 PNG copies of latest version of mutant standard emojis with codepoints. I have a zip [here](https://mutant.lavatech.top/72x72.zip). -- If you want Blob emoji patches, get 72x72 PNG copies of blobmojis with codepoints. I personally resized the png/128 folder in this [repo](https://github.com/C1710/blobmoji) (`find /home/ave/blobmoji/png/72 -iname '*.png' -exec convert \{\} -verbose -resize 72x72\> \{\} \;`). +- If you want Blob emoji patches, ~~get 72x72 PNG copies of blobmojis with codepoints. I personally resized the png/128 folder in this [repo](https://github.com/C1710/blobmoji) (`find /home/ave/blobmoji/png/72 -iname '*.png' -exec convert \{\} -verbose -resize 72x72\> \{\} \;`)~~ Use [this](https://booba.tech/CutTheCord/blobs) repo. - Extract the emojis you got somewhere. - Clone this repo somewhere. - Set your environment variables (see below), put them to somewhere where they'll persist (like your .bashrc/.zshrc, or preferably a build script). -- Get a Discord apk (*cough* [this repo](https://git.46620.moe/CutTheCord-Femboy/discord), [aptoide API](https://ws75.aptoide.com/api/7/app/getMeta?package_name=com.discord)). +- Get a Discord apk (*cough* [this repo](https://booba.tech/CutTheCord/discord), [aptoide API](https://ws75.aptoide.com/api/7/app/getMeta?package_name=com.discord)). ### Using CutTheCord CI @@ -49,8 +49,9 @@ Example: `python3.6 /home/ave/distokrepos/cutthecord/ctcci/ctcci.py ave mutant c - Apply the patches (`patch -p1 < `). - If you want mutant (or other emoji patches), edit `patches/mutant/emojireplace.py` to point to extracted discord folder (`extracted_discord_path`), and apply emoji patches (`python3 emojireplace.py`) - Build the new APK (`apktool b com.discord-832`) -- Sign the new APK (`jarsigner -keystore /dist/.apk `) -- Get your new APK from `/dist/.apk`, install and enjoy! +- Align the zip (`zipalign -f -p 4 com.discord-832.apk com.discord-832-aligned.apk`) +- Sign the new APK (`apksigner sign --ks /dist/.apk`) +- Get your new APK from `/dist/-aligned.apk`, install and enjoy! #### Building patches