Skip to content

Commit 671da24

Browse files
committed
Quick hack to not hash check FOrge installers
1 parent c531be0 commit 671da24

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

enumerateForge.py

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class MojangLibrary (JsonObject):
5757
class MultiMCLibrary (MojangLibrary):
5858
url = StringProperty(exclude_if_none=True, default=None)
5959
mmcHint = StringProperty(name="MMC-hint", exclude_if_none=True, default=None)
60+
mmcAbsoluteURL = StringProperty(name="MMC-absoluteUrl", exclude_if_none=True, default=None)
6061

6162

6263
def GetLibraryDownload (library : MultiMCLibrary):

generateForge.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@ def versionFromBuildSystemInstaller(installerVersion : MojangVersionFile, instal
185185
installerInfo = InstallerInfo(json.load(f))
186186
InstallerLib = MultiMCLibrary(name=GradleSpecifier("net.minecraftforge:forge:%s:installer" % (version.longVersion)))
187187
InstallerLib.downloads = MojangLibraryDownloads()
188-
InstallerLib.downloads.artifact = MojangArtifact()
189-
InstallerLib.downloads.artifact.url = "https://files.minecraftforge.net/maven/%s" % (InstallerLib.name.getPath())
190-
InstallerLib.downloads.artifact.sha1 = installerInfo.sha1hash
191-
InstallerLib.downloads.artifact.size = installerInfo.size
188+
InstallerLib.mmcAbsoluteURL = "https://files.minecraftforge.net/maven/%s" % (InstallerLib.name.getPath())
189+
# InstallerLib.downloads.artifact = MojangArtifact()
190+
# InstallerLib.downloads.artifact.url = "https://files.minecraftforge.net/maven/%s" % (InstallerLib.name.getPath())
191+
# InstallerLib.downloads.artifact.sha1 = installerInfo.sha1hash
192+
# InstallerLib.downloads.artifact.size = installerInfo.size
192193
mavenLibs.append(InstallerLib)
193194

194195
for upstreamLib in installerProfile.libraries:

metautil.py

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def validateSupportedMultiMCVersion(version):
244244
class MultiMCLibrary (MojangLibrary):
245245
url = StringProperty(exclude_if_none=True, default=None)
246246
mmcHint = StringProperty(name="MMC-hint", exclude_if_none=True, default=None)
247+
mmcAbsoluteURL = StringProperty(name="MMC-absoluteUrl", exclude_if_none=True, default=None)
247248

248249
class VersionedJsonObject(JsonObject):
249250
formatVersion = IntegerProperty(default=CurrentMultiMCFormatVersion, validators=validateSupportedMultiMCVersion)

0 commit comments

Comments
 (0)