From bbd4d43990ab5720c310b519810a8d233b114d0c Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Fri, 25 Jan 2019 16:21:27 +0300 Subject: [PATCH] branding: bug fixes --- patches/branding/835.patch | 2 +- patches/branding/README.md | 2 +- patches/branding/addpatch.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/branding/835.patch b/patches/branding/835.patch index c583883..f0dafa5 100644 --- a/patches/branding/835.patch +++ b/patches/branding/835.patch @@ -45,7 +45,7 @@ diff -crB -x dist -x build com.discord-835-base/AndroidManifest.xml com.discord- --- 1,4 ---- -! +! diff --git a/patches/branding/README.md b/patches/branding/README.md index 6571b30..1bec7ad 100644 --- a/patches/branding/README.md +++ b/patches/branding/README.md @@ -2,7 +2,7 @@ This patch renames Discord app to Cutthecord. -You'll need to run "addpatch.py" with syntax of `python3 addpatch.py $in_patch_filename $space_splitted_patches` and use the `-custom.patch` version, or else it'll fail. +You'll need to run "addpatch.py" with syntax of `python3 addpatch.py $in_patch_filename $space_splitted_patches` and use the `-custom.patch` version, or else it'll fail. You'll need to put a valid directory for storing hacky build counters to it. Running customicon.sh (while on root of the extracted folder) will also change the icon to the debug icon: diff --git a/patches/branding/addpatch.py b/patches/branding/addpatch.py index 4b51bb9..7c898e8 100644 --- a/patches/branding/addpatch.py +++ b/patches/branding/addpatch.py @@ -9,7 +9,7 @@ persistdir = "/home/ave/distokrepos/versionlogs/" def counterup(): # HACKY cfname = persistdir + fname.split("/")[-1].replace(".patch", "") - if os.path.isfile(fname): + if os.path.isfile(cfname): with open(cfname, 'r') as file: countdata = file.read() else: @@ -27,7 +27,7 @@ def counterup(): with open(fname, 'r') as file: filedata = file.read() -buildnum = counterup() +buildnum = str(counterup()) name = "CutTheCord" branch = "base"