Compare commits

...

32 commits

Author SHA1 Message Date
0111263ae8 87202 patches 2021-08-05 00:23:08 +01:00
Ave
44cd92fcdc hotfix for branding 2021-06-30 15:15:30 +03:00
Ave
8037a7c9b8 Add branding to 78.4 2021-06-30 15:13:42 +03:00
ab288a7c79 add customversion 2021-06-04 21:53:33 +03:00
f38df07e48 Add profilemention 2021-06-04 21:23:03 +03:00
350f30b1f6 Add nozlib, remove nonearby 2021-06-04 21:02:56 +03:00
4f86cec370 Add embedlinks 2021-05-31 18:40:14 +03:00
9d7138b6a6 Add showtag 2021-05-31 18:31:10 +03:00
66b238bb1b Fix versions on patch READMEs 2021-05-31 16:42:35 +03:00
ee4a3cb49e Remove noprofilestrip 2021-05-31 16:29:20 +03:00
8f690ffe03 Push start on 78.4 alpha 2021-05-31 16:21:06 +03:00
Ave
69700dacaf patchport: Look out for "can't find file to patch" 2021-02-21 22:43:49 +03:00
Ave
fb587755da Make CTCCI use a hacky self built version of apktool bc yeah 2021-02-21 22:33:49 +03:00
Ave
1b99304a05 Revert "Start up work on 1387"
This reverts commit c60d13a690.
2021-02-21 22:12:13 +03:00
Ave
c60d13a690 Start up work on 1387 2021-01-10 05:35:35 +03:00
Ave
1cc00f6a48 patchport: Fix #92 2021-01-10 03:39:47 +03:00
Ave
f3ee05255c supplemental: Fix #104 2021-01-10 02:41:09 +03:00
Ave
4db6c07a04 Merge pull request '53.1 - 56.0 (1358 - 1371) + other small changes' (#103) from tesnos6921/cutthecord:master into master
Reviewed-on: distok/cutthecord#103
2021-01-06 19:53:43 +00:00
fb8a857955 56.0 (1371) 2021-01-05 17:09:25 -05:00
9082828e56 55.1 (1370) 2021-01-05 17:01:54 -05:00
354e1538c2 54.0 but better (1368) 2021-01-05 16:52:52 -05:00
8811192499 53.8 (1367) 2021-01-05 16:44:17 -05:00
9de62d94f3 53.6 (1365) 2021-01-05 16:23:38 -05:00
dab5801b1e 53.3 (1361) + 54.0 (1362) 2021-01-05 16:06:09 -05:00
03827d9f02 53.1 (1358) + patchport.py performance improvements + small BUILDING.md corrections 2021-01-05 15:33:23 -05:00
Ave
73cba5f94d Update building to clarify how to force old versions
Closes #95
2020-12-15 18:09:44 +03:00
a35345d167
Fix all slashcommands patches 2020-12-13 05:53:12 +00:00
c21b085f22
53.0 (1356) 2020-12-13 05:35:00 +00:00
91dd61f262
[1355] Fix slashcommands patch 2020-12-13 05:34:37 +00:00
f52a1d0764
52.3 (1355) 2020-12-10 19:03:11 +00:00
Ave
b9cf51f294
rename sanerotation to betterrotation and add docs 2020-12-08 22:03:04 +03:00
Ave
2027eaeb39 Merge pull request 'Add sane rotation patch.' (#91) from clienthax/cutthecord:master into master
Reviewed-on: distok/cutthecord#91
2020-12-08 18:58:34 +00:00
671 changed files with 758097 additions and 1233 deletions

View file

@ -2,7 +2,7 @@
#### Toolchain setup #### Toolchain setup
- Get apktool (due to 2 bugs present in v2.3.4, you're strongly recommended to use v2.4.0 or higher, I compile latest from source). - Get apktool (use [this self-built version](//f001.backblazeb2.com/file/avepub/apktool-cli-all.jar) which is master + [this pr](https://github.com/iBotPeaches/Apktool/pull/2463)).
- Get a keystore, see [here](https://stackoverflow.com/a/14994354/3286892), step 1. - Get a keystore, see [here](https://stackoverflow.com/a/14994354/3286892), step 1.
- Get apksigner, it's part of android build tools. - 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 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).
@ -21,9 +21,8 @@ CTCCI requires python3.6+, and also likely requires Linux (I haven't tried it on
#### Initial setup #### Initial setup
- Follow the "Toolchain setup" steps above in case you haven't already. - Follow the "Toolchain setup" steps above in case you haven't already.
- Install dependencies (`python3 -m pip install -Ur requirements.txt`)
- Copy `ctcci/ctcconfig.example.py` to `ctcci/ctcconfig.py` and configure contents to your local data and your personal preferences. - Copy `ctcci/ctcconfig.example.py` to `ctcci/ctcconfig.py` and configure contents to your local data and your personal preferences.
- If you don't want to always automatically be required to use the latest discord version, set `LOCAL_STATE` to `True` and point `STATE_FILE` to a `state.json` file that looks like this: `{"android": {"com.discord": {"version": 909}}}`. - If you don't want to always automatically be required to use the latest discord version, edit the `$REPO_FOLDER/patchport-state.json` file.
- Set up a local distok-style file storage for your APKs, and copy your APKs on it, and name them properly (the format is `$DISTOK_FOLDER/android/$PACKAGE_ID-$VERSION_NUMBER.apk`, example: `/home/ave/distok/android/com.discord-909.apk`). - Set up a local distok-style file storage for your APKs, and copy your APKs on it, and name them properly (the format is `$DISTOK_FOLDER/android/$PACKAGE_ID-$VERSION_NUMBER.apk`, example: `/home/ave/distok/android/com.discord-909.apk`).
#### Environment Variables #### Environment Variables
@ -61,11 +60,11 @@ To get the diff, run `diff -crB -x "dist" -x "res/raw" -x "build" CleanFolder Pa
#### Porting patches #### Porting patches
You can use `patchport.py` to easily attempt to port patches. This is what I use to port between every single version. You can use `patchport.py` to easily attempt to port patches. This is what I use to port between every single version. Note that while CTCCI requires python3.6+, `patchport.py` requires python3.7+.
It's not really intelligent and doesn't do much more than manually preparing necessary patch, checking if an existing patch can be applied to a given version, replacing relevant variables required for porting various patches and eliminating offsets caused by updates, but it saves a lot of time if used carefully. It's not really intelligent and doesn't do much more than manually preparing necessary patch, checking if an existing patch can be applied to a given version, replacing relevant variables required for porting various patches and eliminating offsets caused by updates, but it saves a lot of time if used carefully.
Example command: `python3 patchport.py /home/ave/workbench/ctc/com.discord-968` Example command: `python3.7 patchport.py /home/ave/workbench/ctc/com.discord-968`
#### Figuring out which patch is causing your build to break #### Figuring out which patch is causing your build to break

View file

@ -2,7 +2,11 @@
Modular Client Mod for Discord's Android app. Modular Client Mod for Discord's Android app.
**Latest supported Discord Android version:** 49.13 (1340), released on 2020-11-20. **THIS IS A WORK IN PROGRESS BRANCH! THE PATCHES ARE INCOMPLETE!**
For status updates and support on the project, join #cutthecord on https://libera.chat. WebIRC link: https://web.libera.chat/#cutthecord
**Latest supported Discord Android version:** 78.4 - Alpha (78204), released on 2021-05-31.
New patch development will be done for the latest supported version. New patch development will be done for the latest supported version.

3
ctcci/.gitignore vendored
View file

@ -1 +1,2 @@
ctcconfig.py ctcconfig.py
__pycache__

View file

@ -69,7 +69,7 @@ if DO_GITPULL:
# Extract the APK if it's not already extracted to base cache # Extract the APK if it's not already extracted to base cache
if not os.path.exists(BASE_APK_PATH): if not os.path.exists(BASE_APK_PATH):
subprocess.run(f"{APKTOOL_BIN} d {INPUT_FILE} -o {BASE_APK_PATH} -f", subprocess.run(f"{APKTOOL_BIN} d --no-dummy {INPUT_FILE} -o {BASE_APK_PATH} -f",
shell=True, shell=True,
cwd=WORK_FOLDER) cwd=WORK_FOLDER)

View file

@ -9,3 +9,5 @@ Here's why these patches are no longer maintained in this form:
- compact: It's just a pain to maintain. - compact: It's just a pain to maintain.
- smalltime: It's just a pain to maintain. - smalltime: It's just a pain to maintain.
- customdefaultemoji: There doesn't seem to be default emojis anymore? - customdefaultemoji: There doesn't seem to be default emojis anymore?
- noprofilestrip: UI changes removed the profile strip.
- nonearby: Didn't add much anyways.

Some files were not shown because too many files have changed in this diff Show more