Write displayName during modrinth activate

This commit is contained in:
Moritz Ruth 2022-08-27 15:56:38 +02:00
parent 152386bcbf
commit aa0703966a

View file

@ -67,6 +67,7 @@ export const activateCommand = new Command("activate")
await fs.mkdirp(absolutePath.parent().toString()) await fs.mkdirp(absolutePath.parent().toString())
await writeJsonFile(absolutePath, metaFileContentSchema, { await writeJsonFile(absolutePath, metaFileContentSchema, {
displayName: modrinthMod.title,
formatVersion: FORMAT_VERSION, formatVersion: FORMAT_VERSION,
enabled: true, enabled: true,
version: getMetaFileContentVersionForModrinth(modrinthVersion), version: getMetaFileContentVersionForModrinth(modrinthVersion),