added the build command

This commit is contained in:
2026-01-20 07:47:15 +11:00
parent 77a7a44804
commit a12990ef65
5 changed files with 109 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ def publish(args):
sys.exit(1)
# compress to a tar file
console.status("Compressing")
console.status("Compressing", spinner_style="green")
f = tempfile.TemporaryFile(mode="wb+")
with tarfile.open(fileobj=f, mode="w:gz") as tar_file:
tar_file.add(args.folder_path, arcname=os.path.basename(args.folder_path))
@@ -63,7 +63,7 @@ def publish(args):
console.print("[d][:white_check_mark:] Compressed![/]")
# send the request
status.update("Uploading...")
status.update("Uploading...", spinner_style="blue")
response = requests.put(
url=f"https://chookspace.com/api/packages/ground/generic/{mineral_name}/{version}/mineral.tar",
data=f,