First Release

This commit is contained in:
VerstreuteSeele
2022-12-18 20:55:09 +01:00
parent afb7e52794
commit 2967fd8421
3 changed files with 7 additions and 6 deletions
BIN
View File
Binary file not shown.
+6 -5
View File
@@ -30,18 +30,19 @@ def push_number(line):
src.write(file.replace(line, newline))
src.truncate()
src.close()
return newline.split('"')[1].split('"')[0]
return newline.split('"')[1].split('"')[0], newnum
def main():
ren = push_number(find_number())
numbers = push_number(find_number())
ren = numbers[0]
release = numbers[1]
print(ren)
os.system(f' cd "{folder}" && powershell -command "./fbt updater_package"')
os.system(f'move {os.path.join(Build_path + f"f7-update-{ren}")} {Firmware_base}')
old_build = f"f7-update-{ren}"
os.system(f"cd {Firmware_base} && ren {old_build} {ren}")
os.system(f'git add * && git commit -m "{commit}"')
zipfile = shutil.make_archive(ren, 'zip', os.path.join(Firmware_base, ren))
zipfile = shutil.make_archive(os.path.join(Firmware_base, ren), 'zip', os.path.join(Firmware_base, ren))
print(zipfile)
input()
os.system(f'''gh release create {ren.split('"')[1].split('"')[0]} -R "ClaraCrazy/flipper-firmware" --generate-notes {zipfile}''')
os.system(f'''gh release create {release} -R "ClaraCrazy/flipper-firmware" --generate-notes {zipfile}''')
main()
+1 -1
View File
@@ -14,7 +14,7 @@ DEBUG = 0
# Suffix to add to files when building distribution
# If OS environment has DIST_SUFFIX set, it will be used instead
DIST_SUFFIX = "CC_CL-0005"
DIST_SUFFIX = "CC_CL-0006"
# Coprocessor firmware
COPRO_OB_DATA = "scripts/ob.data"