Update made automatically due to pressing build

This commit is contained in:
Li 2022-05-08 13:10:16 +12:00
parent 7efb878f63
commit aed289e5d5
5 changed files with 74 additions and 81 deletions

View file

@ -60,8 +60,8 @@ update_asm_info(os.path.join("N00BS", "Properties", "AssemblyInfo.cs"))
update_asm_info(os.path.join("HISPd", "Properties", "AssemblyInfo.cs"))
control_file = os.path.join("HISPd", "Resources", "DEBIAN", "control")
lines = open(control_file, "rb").readlines()
lines = open(control_file, "r").readlines()
for i in range(0,len(lines)):
if lines[i].startswith(b"Version: "):
lines[i] = b"Version: "+bytes(commit_tag.replace("v", ""), "UTF-8")
open(control_file, "wb").writelines(control_file)
open(control_file, "w").writelines(control_file)