OrionMinecraft / Orion

Mixin loader for Paper
MIT License
46 stars 4 forks source link

Paperclip version check #11

Open mikroskeem opened 4 years ago

mikroskeem commented 4 years ago

Since https://github.com/PaperMC/Paperclip/commit/726b8cc1802556a478a5e4afbf9d3fc1d27b772b Paperclip is using properties file instead of JSON for describing patch information, which makes examining Paperclip version easy.

Possible use-cases:

mikroskeem commented 4 years ago

Though care should be taken with older Paperclip jars, because that's a rather recent change...

electron93 commented 4 years ago

@mikroskeem https://papermc.io/api/v1/paper/1.14.4 returns the list of builds and the latest one:

{
    "project":"paper",
    "version":"1.14.4",
    "builds":{
        "latest":"233",
        "all":[
            "233",
            "232",
            "231",
            "... long list ...",
            "136",
            "135"
        ]
    }
}

I also noticed that this list contains only successful builds.

I think we should save the file with the name in the format 'paper-.jar', and check like that. Or save the current build number somewhere else.