@@ -1340,6 +1340,7 @@ export interface Version {
1340
1340
* The forge version (without minecraft version)
1341
1341
*/
1342
1342
version: string;
1343
+ type?: "buggy" | "recommended" | "common" | "latest";
1343
1344
}
1344
1345
export declare const DEFAULT_FORGE_MAVEN = "http://files.minecraftforge.net";
1345
1346
export interface InstallProfile {
@@ -1440,15 +1441,9 @@ import * as LiteLoaderInstaller from "./liteloader";
1440
1441
import * as ForgeInstaller from "./forge";
1441
1442
import * as Installer from "./minecraft";
1442
1443
import * as Diagnosis from "./diagnose";
1444
+ export { JavaExecutor } from "./util";
1443
1445
export { Installer, ForgeInstaller, LiteLoaderInstaller, FabricInstaller, Diagnosis };
1444
1446
` ;
1445
- module . exports [ '@xmcl/installer/java.d.ts' ] = `/// <reference types="node" />
1446
- import { ExecOptions } from "child_process";
1447
- export declare type JavaExecutor = (args: string[], option?: ExecOptions) => Promise<any>;
1448
- export declare namespace JavaExecutor {
1449
- function createSimple(javaPath: string, defaultOptions?: ExecOptions): JavaExecutor;
1450
- }
1451
- ` ;
1452
1447
module . exports [ '@xmcl/installer/liteloader.d.ts' ] = `import { MinecraftLocation } from "@xmcl/core";
1453
1448
import { Task } from "@xmcl/task";
1454
1449
import { UpdatedObject } from "./util";
@@ -1638,7 +1633,9 @@ export interface JarOption extends DownloaderOption {
1638
1633
}
1639
1634
export declare type Option = AssetsOption & JarOption & LibraryOption;
1640
1635
/**
1641
- * Install the Minecraft game to a location by version metadata
1636
+ * Install the Minecraft game to a location by version metadata.
1637
+ *
1638
+ * This will install version json, version jar, and all dependencies (assets, libraries)
1642
1639
*
1643
1640
* @param type The type of game, client or server
1644
1641
* @param versionMeta The version metadata
@@ -1649,6 +1646,8 @@ export declare function install(type: "server" | "client", versionMeta: Version,
1649
1646
/**
1650
1647
* Install the Minecraft game to a location by version metadata
1651
1648
*
1649
+ * This will install version json, version jar, and all dependencies (assets, libraries)
1650
+ *
1652
1651
* Tasks emmitted:
1653
1652
* - install
1654
1653
* - installVersion
@@ -1668,7 +1667,7 @@ export declare function install(type: "server" | "client", versionMeta: Version,
1668
1667
*/
1669
1668
export declare function installTask(type: "server" | "client", versionMeta: Version, minecraft: MinecraftLocation, option?: Option): Task<ResolvedVersion>;
1670
1669
/**
1671
- * Only install the json/jar. Do not check dependencies;
1670
+ * Only install the json/jar. Do not install dependencies.
1672
1671
*
1673
1672
* @param type client or server
1674
1673
* @param versionMeta the version metadata; get from updateVersionMeta
@@ -1689,7 +1688,7 @@ export declare function installVersion(type: "client" | "server", versionMeta: V
1689
1688
*/
1690
1689
export declare function installVersionTask(type: "client" | "server", versionMeta: Version, minecraft: MinecraftLocation, option?: JarOption): Task<ResolvedVersion>;
1691
1690
/**
1692
- * Install the completeness of the Minecraft game assets and libraries.
1691
+ * Install the completeness of the Minecraft game assets and libraries on a existed version .
1693
1692
*
1694
1693
* @param version The resolved version produced by Version.parse
1695
1694
* @param minecraft The minecraft location
0 commit comments