mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 00:10:00 +02:00
chore: Update flatpak release process
This commit is contained in:
parent
0b824acd20
commit
0ac10f2c03
2 changed files with 91 additions and 3 deletions
|
@ -15,12 +15,17 @@ def get_sha256sum(filename):
|
|||
return sha256.hexdigest()
|
||||
|
||||
def build_template(template, linux_sha256, flatpak_sha256, version):
|
||||
print(f"Building template with version {version}")
|
||||
print(f"\tLinux archive sha256: {linux_sha256}")
|
||||
print(f"\tFlatpak archive sha256: {flatpak_sha256}")
|
||||
return template.format(linux_sha256=linux_sha256,
|
||||
flatpak_sha256=flatpak_sha256,
|
||||
version=version)
|
||||
|
||||
def get_template(template_root):
|
||||
with open(f"{template_root}/{FLATID}.yml.template", "r") as f:
|
||||
file = f"{template_root}/{FLATID}.yml.template"
|
||||
print(f"Reading template {file}")
|
||||
with open(file, "r") as f:
|
||||
return f.read()
|
||||
print(f"Template {template_root}/flatpak.yml not found")
|
||||
sys.exit(1)
|
||||
|
@ -45,6 +50,7 @@ def main():
|
|||
|
||||
template = build_template(get_template(template_root), linux_sha256, flatpak_sha256, version)
|
||||
|
||||
print(f"Writing output to {output}")
|
||||
with open(output, "w") as f:
|
||||
f.write(template)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue