This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Raw downloads
Janrupf edited this page Jul 8, 2020
·
4 revisions
First of all, your file needs to end with .url.json
. Then, the format needs to be the following:
{
"url": "https://mymod.com/download/mod.jar"
}
Sometimes you may want to override the file name, in that case you can use the fileName
key:
{
"url": "https://mymod.com/download/mod.jar",
"fileName": "the-final-name.jar"
}
In general, it is recommended to specify the file name, if it can't be clearly obtained from the url.
Practical example:
{
"url": "https://github.com/MightyPirates/OpenComputers/releases/download/v1.7.5/OpenComputers-MC1.12.2-1.7.5.192.jar"
}
(Note: fileName
has been omitted, because it is clear in this case)
Sometimes you can't use a direct download link, but your link might be labeled with buttons. If so, you can use the follows
key to follow links. It is highly recommended to specify fileName
in such case!
{
"url": "https://mymod.com/download/the-landing-page",
"follows": ["Download now"],
"fileName": "mymod.jar"
}
Practical example:
{
"url": "https://www.mediafire.com/file/646bzvu0z4e92vf/Tekklands-Pre-Re-1.0.jar/file",
"follows": ["Download (247.65KB)"],
"fileName": "Tekklands-Pre-Re-1.0.jar"
}
This feature is supported in version 1.0+