mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2024-11-21 21:48:21 -05:00
Add versions to Mod type
This commit is contained in:
parent
66f4c2b289
commit
5f13645122
1
src/mods/mod.ts → src/mods/mod.d.ts
vendored
1
src/mods/mod.ts → src/mods/mod.d.ts
vendored
@ -3,6 +3,7 @@ declare global {
|
|||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
fileName: string,
|
fileName: string,
|
||||||
|
version: string
|
||||||
source: string,
|
source: string,
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -146,6 +146,7 @@ export default class ModrinthSource implements ModSource {
|
|||||||
|
|
||||||
const fileName = latestFile.filename;
|
const fileName = latestFile.filename;
|
||||||
const url = latestFile.url;
|
const url = latestFile.url;
|
||||||
|
const modVersion = results[0].version_number;
|
||||||
|
|
||||||
const task: DownloadTask = {
|
const task: DownloadTask = {
|
||||||
fileName: fileName,
|
fileName: fileName,
|
||||||
@ -159,6 +160,7 @@ export default class ModrinthSource implements ModSource {
|
|||||||
name: await this.getProjectName(id),
|
name: await this.getProjectName(id),
|
||||||
id: id,
|
id: id,
|
||||||
fileName: fileName,
|
fileName: fileName,
|
||||||
|
version: modVersion,
|
||||||
source: this.getSourceName()
|
source: this.getSourceName()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user