branding: make addpatch script dynamically get branch names

This commit is contained in:
ave 2019-01-28 00:06:24 +03:00
parent ab1b95d8b2
commit 60e4d5282b
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B
2 changed files with 2 additions and 5 deletions

View file

@ -2,7 +2,7 @@
This patch renames Discord app to Cutthecord. 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: Running customicon.sh (while on root of the extracted folder) will also change the icon to the debug icon:

View file

@ -28,11 +28,8 @@ with open(fname, 'r') as file:
filedata = file.read() filedata = file.read()
name = "CutTheCord" name = "CutTheCord"
branch = "base"
if "customtheme" in sys.argv: branch = sys.argv[2]
branch = "themed"
# name += " Themed"
buildnum = str(counterup(branch)) buildnum = str(counterup(branch))