1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-07-02 18:13:21 +00:00

Add 1.18.x support

Also install node modules if needed
This commit is contained in:
Jonathan Coates 2021-12-11 07:51:48 +00:00
parent 822445717d
commit dbc8c18b34
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
2 changed files with 9 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,4 +1,7 @@
# Minecraft/loader versions
/mc-*
# Build output
/.idea
/.gradle
/logs

7
go4it
View File

@ -33,7 +33,7 @@ class Branch:
BRANCHES: List[Branch] = [
Branch('mc-1.16.x'),
Branch('mc-1.17.x', parent='mc-1.16.x', java="16"),
# Branch('mc-fabric-1.17.x', parent='mc-1.17.x', java="16"),
Branch('mc-1.18.x', parent='mc-1.17.x', java="17"),
]
@ -97,6 +97,11 @@ def setup() -> None:
with open("build.gradle", "w") as h:
pass
log("Installing npm packages")
for branch in BRANCHES:
if not os.path.isdir(os.path.join(branch.name, "node_module")):
run_in(branch, "npm", "ci")
def gen_runs() -> None:
"""