Skip to content

Commit 5bd58c5

Browse files
Use dynamic BepInEx version
1 parent df8b063 commit 5bd58c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

installer/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"win32": "win",
1515
"darwin": "macos",
1616
}[sys.platform]
17-
BEPINEX = f"733/BepInEx-Unity.IL2CPP-{OS}-x64-6.0.0-be.733%2B995f049"
17+
BEPINEX = "https://polymod.dev/data/bepinex.txt"
1818
POLYMOD = "https://api.github.com/repos/PolyModdingTeam/PolyMod/releases"
1919

2020

@@ -65,7 +65,7 @@ def prepare(target):
6565
def install(path):
6666
to_zip(
6767
requests.get(
68-
f"https://builds.bepinex.dev/projects/bepinex_be/{BEPINEX}.zip"
68+
requests.get(BEPINEX).text.strip().replace("{os}", OS)
6969
)
7070
).extractall(path)
7171
progress_bar.step()

0 commit comments

Comments
 (0)