[feat] added a naive way to parse mod metadata (#855)

This commit is contained in:
silentrald
2025-04-25 19:59:09 +08:00
committed by GitHub
parent 266feae483
commit 79be1a842c
7 changed files with 143 additions and 0 deletions
+24
View File
@@ -100,3 +100,27 @@ export interface BbmUserAPIResponse {
createdAt?: Date;
updatedAt?: Date;
}
// https://raw.githubusercontent.com/bsmg/BSIPA-MetadataFileSchema/master/Schema.json
export interface ModMetadata {
name: string;
id: string | null;
version: string;
gameVersion: string;
description: string;
author: string;
dependsOn?: Record<string, string>;
conflictsWith?: Record<string, string>;
loadAfter?: string[];
loadBefore?: string[];
feature?: Record<string, string>;
icon?: string;
files?: string[];
links?: {
"project-home"?: string;
"project-source"?: string;
donate?: string;
};
misc?: Record<string, string>;
}