Add in support for using a mirror list and provide checksums for packed download of libs

This commit is contained in:
Christian 2013-09-15 22:58:07 -04:00
parent 4fc4accb6e
commit 466902654e
2 changed files with 4 additions and 1 deletions

View file

@ -203,7 +203,7 @@
<delete file="${basedir}/installer_base.jar" /> <delete file="${basedir}/installer_base.jar" />
<delete file="${basedir}/install_profile.json" /> <delete file="${basedir}/install_profile.json" />
<get src="http://files.minecraftforge.net/installer/forge-installer-1.1-shrunk.jar" dest="${basedir}/installer_base.jar" /> <get src="http://files.minecraftforge.net/installer/forge-installer-1.2-shrunk.jar" dest="${basedir}/installer_base.jar" />
<copy file="${basedir}/jsons/${version.minecraft}-rel.json" tofile="${basedir}/install_profile.json" /> <copy file="${basedir}/jsons/${version.minecraft}-rel.json" tofile="${basedir}/install_profile.json" />
<copy file="${basedir}/installer_base.jar" tofile="${basedir}/target/${modname}-installer-${version.fullname}.jar" /> <copy file="${basedir}/installer_base.jar" tofile="${basedir}/target/${modname}-installer-${version.fullname}.jar" />
<replace file="${basedir}/install_profile.json"> <replace file="${basedir}/install_profile.json">

View file

@ -7,6 +7,7 @@
"filePath":"@universal_jar@", "filePath":"@universal_jar@",
"welcome":"Welcome to the simple FML installer.", "welcome":"Welcome to the simple FML installer.",
"minecraft":"@minecraft_version@", "minecraft":"@minecraft_version@",
"mirrorList" : "http://files.minecraftforge.net/mirror.list",
"logo":"/big_logo.png" "logo":"/big_logo.png"
}, },
"versionInfo": { "versionInfo": {
@ -33,6 +34,7 @@
{ {
"name": "org.scala-lang:scala-library:2.10.2", "name": "org.scala-lang:scala-library:2.10.2",
"url" : "http://files.minecraftforge.net/maven/", "url" : "http://files.minecraftforge.net/maven/",
"checksums" : [ "6ba65d12cd09d441083262d6f73d2257fec7c663", "dffc88e804861c9eaba39283757000b6558ea573" ],
"comment" : "Important for FML, we add this", "comment" : "Important for FML, we add this",
"serverreq":true, "serverreq":true,
"clientreq":true "clientreq":true
@ -40,6 +42,7 @@
{ {
"name": "org.scala-lang:scala-compiler:2.10.2", "name": "org.scala-lang:scala-compiler:2.10.2",
"url" : "http://files.minecraftforge.net/maven/", "url" : "http://files.minecraftforge.net/maven/",
"checksums" : [ "64c8b1380cc53d6850823d6e4e7ae984aa44ef9c", "40281b3ffc69fb385953522c843363ccaf71ba89" ],
"comment" : "Important for FML, we add this", "comment" : "Important for FML, we add this",
"serverreq":true, "serverreq":true,
"clientreq":true "clientreq":true