QuiltMC / quilt-installer

The Quilt installer for the official Minecraft launcher and servers
Apache License 2.0
40 stars 20 forks source link

maven repo latest reference gone #36

Open nothub opened 1 year ago

nothub commented 1 year ago

I use the latest reference in the maven repo to download the installer with the mrpack-install tool. This reference is now gone (see #18). Will this reference be restored, should I parse the maven-metadata.xml or is there another recommended way to fetch the latest version?

boldandbrad commented 8 months ago

This still appears to be an issue. I'm looking for a simple and reliable way to download the installer from the command line (ubuntu server). Used to be able to just pull the jar from the latest url on maven

ghost commented 8 months ago

You can use https://quiltmc.org/api/v1/download-latest-installer/java-universal, although I'm not sure this interface has guaranteed support as the person working on this API left. Hopefully someone can confirm.

boldandbrad commented 8 months ago

Both curl and wget were giving me corrupted jar files when using that url. Not sure if there is a particular request type, headers, or options required to properly get the jar from that endpoint.

ghost commented 8 months ago

I cannot reproduce on Windows. Are you using the flags required to follow redirects?

nothub commented 7 months ago

Not sure if there is a particular request type, headers, or options required to properly get the jar from that endpoint.

With curl you can use the -L flag to follow redirects.