modpack config
This commit is contained in:
@@ -5,6 +5,7 @@ import os, sys, argparse, tempfile, subprocess, shutil, requests
|
||||
parser = argparse.ArgumentParser(description="a helper script for liightninggod modpacks")
|
||||
|
||||
parser.add_argument("--export", "-e", help="export modpack zip", action="store_true")
|
||||
parser.add_argument("--export-full", help="export modpack zip with mods folder", action="store_true")
|
||||
parser.add_argument("--setup", "-s", help="setup project and install dependencies", action="store_true")
|
||||
parser.add_argument("--force", "-f", help="forces things when needed, like redoing setup", action="store_true")
|
||||
parser.add_argument("--build-pax", help="builds pax from source, even if on a supported platform", action="store_true")
|
||||
@@ -23,7 +24,7 @@ OS = sys.platform
|
||||
|
||||
def __main__():
|
||||
if args.setup:
|
||||
print("setting up pack")
|
||||
print("setting up tooling")
|
||||
setup_pack()
|
||||
return
|
||||
elif args.export:
|
||||
@@ -31,7 +32,7 @@ def __main__():
|
||||
return
|
||||
|
||||
print(
|
||||
"no command provided. pass the -h flag to see commands for pack, or run ./pax to interact with the modpack's files"
|
||||
"no command provided. pass the -h flag to see commands for tooling, or run ./pax to interact with the modpack's files"
|
||||
)
|
||||
|
||||
|
||||
@@ -82,8 +83,8 @@ def pax_from_source():
|
||||
subprocess.run(["git", "clone", PAX_GITHUB], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
os.chdir("pax")
|
||||
|
||||
subprocess.run(["nimble", "build", "-d:release"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
subprocess.run(["cp", "./pax", WORKING_DIR])
|
||||
subprocess.run(["nimble", "build", "-y", "-d:release"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
subprocess.run(["cp", "pax", WORKING_DIR])
|
||||
|
||||
|
||||
# helper functions
|
||||
|
||||
Reference in New Issue
Block a user