diff options
author | Guido Günther <agx@sigxcpu.org> | 2024-02-16 19:58:09 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2024-02-16 22:58:29 +0100 |
commit | c33deb2077e5dec22a1986814532d60603e45ddc (patch) | |
tree | e421013afb66febdcbe178ac51db22489285c805 | |
parent | 1da7e04712d49013f34a4cfa818ae1f92e588a7a (diff) |
mk-phosh-rel: Add links to tarballs
-rwxr-xr-x | tools/mk-phosh-rel | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/tools/mk-phosh-rel b/tools/mk-phosh-rel index 7adb07d..7a2a4b5 100755 --- a/tools/mk-phosh-rel +++ b/tools/mk-phosh-rel @@ -16,6 +16,7 @@ import sys URL = "https://gitlab.gnome.org" +TARBALLS_URL = "https://sources.phosh.mobi/releases/" _debug = False projects = { @@ -23,11 +24,13 @@ projects = { 'project-id': 16747, 'description': 'A graphical shell for mobile devices', 'category': 'core', + 'tarballs': True, }, 'phoc': { 'project-id': 16763, 'description': 'A Wayland compositor for mobile devices', 'category': 'core', + 'tarballs': True, }, 'squeekboard': { 'project-id': 16777, @@ -38,11 +41,13 @@ projects = { 'project-id': 21486, 'description': 'A Mobile (and Phosh specific) Settings Application', 'category': 'util', + 'tarballs': True, }, 'phosh-tour': { 'project-id': 22337, 'description': 'A short introduction to Phosh', 'category': 'util', + 'tarballs': True, }, # libraries 'libcall-ui': { @@ -65,6 +70,7 @@ projects = { 'project-id': 19269, 'description': 'An experimental alternative on screen keyboard', 'category': 'optional', + 'tarballs': True, }, 'phosh-osk-data': { 'project-id': 25718, @@ -146,7 +152,7 @@ def debug(arg): print(arg) -def format_component(name, version, description, gl_release): +def format_component(name, version, description, gl_release, tarballs): """ Format a single component based on a gitlab release entry. We assume that the detailed list of changes starts with `Detailed @@ -178,9 +184,16 @@ def format_component(name, version, description, gl_release): txt += add txt += f""" -[Detailed list of changes]({gl_release._links['self']})\n -</section> +[Detailed list of changes]({gl_release._links['self']}) """ + if tarballs: + txt += f"""| [Tarball]({TARBALLS_URL}/{name}/{name}-{version}.tar.xz) +| [Checksum]({TARBALLS_URL}/{name}/{name}-{version}.tar.xz.sha256sum) +| [Signature]({TARBALLS_URL}/{name}/{name}-{version}.tar.xz.asc) +""" + + txt +="\n</section>\n" + return txt @@ -264,7 +277,8 @@ individual components: # TODO: add version to header too if (last.tag_name == tag_name): debug(f"{name} released with {tag_name}") - comp_notes = format_component(name, args.version, data['description'], last) + comp_notes = format_component(name, args.version, data['description'], last, + data.get('tarballs')) else: debug(f"{name} not released with {tag_name}, latest is {last.tag_name}") comp_notes = format_missing_component(name, args.version, data['description'], last) |