Skip to content

Commit

Permalink
Add script to upload releases to snapcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo committed Nov 26, 2020
1 parent 056089a commit 2090009
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions linux/upload_craft.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os, sys, subprocess

if len(sys.argv) < 2:
print("Usage: python3 upload_craft.py skycheckers_1.x")
sys.exit(1)

file_prefix = sys.argv[1]

for suffix in ["amd64", "arm64", "i386"]:
filename = file_prefix + "_" + suffix + ".snap"
subprocess.run(["snapcraft", "upload", "--release=stable", filename])

0 comments on commit 2090009

Please sign in to comment.