github: Add workflow to build bundles

Bundles contain an extract script that can be run when unbundled that
puts everything in its place just like an install would do but without
the need for python or the json files.

Signed-off-by: Nicholas Mello <nick@nmello.dev>
This commit is contained in:
2025-08-14 22:07:06 -05:00
parent 7869819571
commit afa723300a
2 changed files with 41 additions and 1 deletions

View File

@@ -229,4 +229,6 @@ if __name__ == "__main__":
elif args.action == "clean":
clean(entries)
elif args.action == "bundle":
create_tool_bundle(datetime.now().strftime("%Y-%m-%d-%H-%M"), entries)
tools = "-".join(sorted(list({entry['tool'] for entry in entries})))
bundle_name = f"{datetime.now().strftime('%Y-%m-%d-%H-%M')}-{tools}"
create_tool_bundle(bundle_name, entries)