Add json generation script

This commit is contained in:
Isaac Shoebottom 2024-01-19 20:41:17 -04:00
parent e8d6563884
commit 864a7d37d2
2 changed files with 67 additions and 0 deletions

31
deps.txt Normal file
View File

@ -0,0 +1,31 @@
BepInEx-BepInExPack-5.4.2100
Augur-CustomFOVAdjust-1.0.1
x753-More_Suits-1.4.1
Sligili-More_Emotes-1.3.3
Sligili-HDLethalCompany-1.5.6
tinyhoot-ShipLoot-1.0.0
Rune580-LethalCompany_InputUtils-0.5.5
Renegades-WalkieUse-1.5.0
Renegades-FlashlightToggle-1.5.0
notnotnotswipez-MoreCompany-1.7.5
Tyzeron-Minimap-1.0.5
anormaltwig-LateCompany-1.0.10
RugbugRedfern-Skinwalkers-4.0.1
x753-Mimics-2.3.2
no00ob-LCSoundTool-1.5.0
Clementinise-CustomSounds-2.3.1
Hexnet111-SuitSaver-1.1.4
ATK-ShipClock-0.9.0
sunnobunno-LandMineFartReverb-1.0.3
PanHouse-LethalClunk-1.1.1
Suskitech-AlwaysHearActiveWalkies-1.4.4
TwinDimensionalProductions-CoilHeadStare-1.0.3
FutureSavior-Hold_Scan_Button-1.1.1
Owen3H-IntroTweaks-1.4.2
EliteMasterEric-SlimeTamingFix-1.0.2
ManiaBania-1000_Quota_Stare-1.0.0
AllToasters-SpectateEnemies-2.2.1
Ozone-Runtime_Netcode_Patcher-0.2.5
KlippKlubben-DraculaFlowBug-1.2.0
Kittenji-Maxwell_ScrapItem-1.0.1
JunLethalCompany-GamblingMachineAtTheCompany-1.3.5

36
generate-manifest.py Normal file
View File

@ -0,0 +1,36 @@
import sys
import json
def main():
# Parse first arg for path to dependencies
deps_file = sys.argv[1]
NAME = "Yoople Pack"
VERSION = "1.0.0"
WEBSITE = "https://git.shoebottom.ca/IsaacShoebottom/YooplePack"
DESCRIPTION = "Modpack for the Yoople server"
# Read dependencies file
# Each line is a dependency, simply parse line and put in array
deps = []
with open(deps_file, "r") as f:
for line in f:
line = line.strip()
if line:
deps.append(line)
# Create manifest
manifest = {
"name": NAME,
"version": VERSION,
"websiteUrl": WEBSITE,
"description": DESCRIPTION,
"dependencies": deps
}
# Write manifest to file
with open("manifest.json", "w") as f:
json.dump(manifest, f, indent=4)
if __name__ == "__main__":
main()