more work

This commit is contained in:
Joey Eamigh
2023-06-21 18:22:39 -04:00
parent 2e74130b2e
commit 3aeb275a65
4 changed files with 106 additions and 46 deletions

View File

@@ -20,7 +20,7 @@ PAX_LATEST_RELEASE = f"{PAX_GITHUB}/releases/latest/download"
PAX_LINUX = f"{PAX_LATEST_RELEASE}/pax"
PAX_WINDOWS = f"{PAX_LATEST_RELEASE}/pax-windows.zip"
MODPACK_GITHUB = "https://git.233hfd.com/joey/FishPogPixelmon"
MODPACK_GIT = "https://git.233hfd.com/joey/FishPogPixelmon"
MODPACK_RELEASES_URL = "https://git.233hfd.com/api/v1/repos/joey/FishPogPixelmon/releases"
@@ -59,9 +59,9 @@ def release():
exit(1)
repo = Repo(WORKING_DIR)
if repo.is_dirty():
cprint("repo is dirty - commit changes before releasing", "red")
exit(1)
# if repo.is_dirty():
# cprint("repo is dirty - commit changes before releasing", "red")
# exit(1)
export_pack()
@@ -74,8 +74,10 @@ def release():
"tea",
"release",
"create",
"-t",
f"v{version}",
"-a",
".out/FishPog Pixelmon.zip",
".out/FishPogPixelmon.zip",
f"v{version}",
]
)
@@ -84,7 +86,7 @@ def release():
# export
def export_pack():
subprocess.run(["./pax", "export"])
os.rename(".out/FishPog Pixelmon.zip", ".out/FishPog Pixelmon.zip")
os.rename(".out/FishPog Pixelmon.zip", ".out/FishPogPixelmon.zip")
# pax