You've already forked AstralRinth
forked from didirus/AstralRinth
Added metadata inference support for Velocity Plugins (#1296)
This commit is contained in:
@@ -231,6 +231,17 @@ export const inferVersionInfo = async function (rawFile, project, gameVersions)
|
|||||||
loaders: ['bungeecord'],
|
loaders: ['bungeecord'],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// Velocity
|
||||||
|
'velocity-plugin.json': (file) => {
|
||||||
|
const metadata = JSON.parse(file)
|
||||||
|
|
||||||
|
return {
|
||||||
|
name: `${project.title} ${metadata.version}`,
|
||||||
|
version_number: metadata.version,
|
||||||
|
version_type: versionType(metadata.version),
|
||||||
|
loaders: ['velocity'],
|
||||||
|
}
|
||||||
|
},
|
||||||
// Modpacks
|
// Modpacks
|
||||||
'modrinth.index.json': (file) => {
|
'modrinth.index.json': (file) => {
|
||||||
const metadata = JSON.parse(file)
|
const metadata = JSON.parse(file)
|
||||||
|
|||||||
Reference in New Issue
Block a user