From 60e4d5282b13598ab29532bb98d01aee59f58aad Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Mon, 28 Jan 2019 00:06:24 +0300 Subject: [PATCH] branding: make addpatch script dynamically get branch names --- patches/branding/README.md | 2 +- patches/branding/addpatch.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/patches/branding/README.md b/patches/branding/README.md index 1bec7ad..e40426c 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 put a valid directory for storing hacky build counters to it. +You'll need to run "addpatch.py" with syntax of `python3 addpatch.py $in_patch_filename $branch_name` 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 3964e54..67950da 100644 --- a/patches/branding/addpatch.py +++ b/patches/branding/addpatch.py @@ -28,11 +28,8 @@ with open(fname, 'r') as file: filedata = file.read() name = "CutTheCord" -branch = "base" -if "customtheme" in sys.argv: - branch = "themed" - # name += " Themed" +branch = sys.argv[2] buildnum = str(counterup(branch))