forked from distok/cutthecord
customversion: add mutant standard disclaimer
This commit is contained in:
parent
3f97a21677
commit
8c2ba2b052
1 changed files with 10 additions and 3 deletions
|
@ -25,9 +25,16 @@ except:
|
||||||
|
|
||||||
hostname = socket.gethostname().split(".")[0]
|
hostname = socket.gethostname().split(".")[0]
|
||||||
|
|
||||||
customtext += ", built on {}@{} at {}".format(uname,
|
disclaimers = ""
|
||||||
hostname,
|
|
||||||
timestamp)
|
if "mutant" in sys.argv:
|
||||||
|
disclaimers += " | This build uses Mutant Standard"\
|
||||||
|
" emoji (https://mutant.tech)."
|
||||||
|
|
||||||
|
customtext += ", built on {}@{} at {}{}".format(uname,
|
||||||
|
hostname,
|
||||||
|
timestamp,
|
||||||
|
disclaimers)
|
||||||
|
|
||||||
# Replace the target string
|
# Replace the target string
|
||||||
filedata = filedata.replace('with Cutthecord patches"',
|
filedata = filedata.replace('with Cutthecord patches"',
|
||||||
|
|
Loading…
Reference in a new issue