Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Paperclip version check #11

Open
mikroskeem opened this issue Dec 2, 2019 · 2 comments
Open

Paperclip version check #11

mikroskeem opened this issue Dec 2, 2019 · 2 comments

Comments

@mikroskeem
Copy link
Collaborator

Since PaperMC/Paperclip@726b8cc Paperclip is using properties file instead of JSON for describing patch information, which makes examining Paperclip version easy.

Possible use-cases:

  • Downloading correct Paper version if currently downloaded version is not the same
  • Checksumming Paper jars inside Orion
@mikroskeem
Copy link
Collaborator Author

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

@electron93
Copy link
Contributor

@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-<build_number>.jar', and check like that. Or save the current build number somewhere else.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants