forked from distok/cutthecord
branding: make addpatch script dynamically get branch names
This commit is contained in:
parent
ab1b95d8b2
commit
60e4d5282b
2 changed files with 2 additions and 5 deletions
|
@ -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:
|
||||||
|
|
||||||
|
|
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue