@adtkcn/hb-cli
Version:
用于uniapp的打包工具,可切换环境变量、可多配置,切换证书,更改版本,wifi调试
62 lines (53 loc) • 1.45 kB
TypeScript
declare namespace AppConfig {
type Platform = "android" | "ios" | "android,ios";
type VersionMode = "custom" | "date" | "auto-increment";
interface PackConfig {
project?: string;
platform?: Platform | string;
iscustom?: boolean;
safemode?: boolean;
android?: {
packagename?: string;
androidpacktype?: number | string;
certalias?: string;
certfile?: string;
certpassword?: string;
channels?: string;
[key: string]: any;
};
ios?: {
bundle?: string;
supporteddevice?: string;
isprisonbreak?: boolean;
profile?: string;
certfile?: string;
certpassword?: string;
[key: string]: any;
};
isconfusion?: boolean;
splashads?: boolean;
rpads?: boolean;
pushads?: boolean;
exchange?: boolean;
[key: string]: any;
}
interface ManifestConfig {
[key: string]: any;
}
interface AppConfig {
output?: string;
create?: () => any;
}
interface VersionConfig {
mode?: VersionMode;
customVersion?: (versionArr: string[]) => string;
}
interface Configuration {
packConfig: () => PackConfig;
mergeManifestConfig?: () => Partial<ManifestConfig>;
appConfig?: AppConfig;
version?: VersionConfig;
onPackEnd?: (filePath: string, fileType: string) => Promise<void>;
}
}
export = AppConfig.Configuration;