From 5a7d18c5a641ae970345a5d71431a4825211daca Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Thu, 7 Feb 2019 22:25:10 +0300 Subject: [PATCH] branding: allow custom app names to be set directly through CI CTC Litecord when?? CTC Litecord now! --- patches/branding/README.md | 2 +- patches/branding/addpatch.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/branding/README.md b/patches/branding/README.md index 5e90bf36e..22125da91 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 $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. +You'll need to run "addpatch.py" with syntax of `python3 addpatch.py $in_patch_filename $app_name $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 bc0ffc2fd..efa3b380e 100644 --- a/patches/branding/addpatch.py +++ b/patches/branding/addpatch.py @@ -27,9 +27,9 @@ def counterup(branch="base"): with open(fname, 'r') as file: filedata = file.read() -name = "CutTheCord" +name = sys.argv[2] -branch = sys.argv[2] +branch = sys.argv[3] buildnum = str(counterup(branch))