You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
997 B

/**
* 确保资产的临时路径存在
* @param dryRun 确认存在
*/
export declare function makeSureMaterialsTempPathExist(dryRun: any): string;
/**
* 从 url git 中下载到本地临时目录
* @param url
* @param id
* @param branch
* @param log
* @param args
*/
export declare function downloadFromGit(url: any, id: any, branch: string, log: any, args?: any): string;
export declare function isGitUrl(url: any): boolean;
/**
* gitlab 不加 .git 会将用户重定向到登录
* @param {*} url
*/
export declare const urlAddGit: (url: any) => any;
export declare function parseGitUrl(url: any, closeFastGithub: any): Promise<{
repo: any;
branch: string;
path: string;
id: string;
}>;
/**
* 解析 url => 分支、repo
* @param url
* @param blockConfig
*/
export declare function getParsedData(url: any, blockConfig: any): Promise<{
repo: any;
branch: string;
path: string;
id: string;
} | {
isLocal: boolean;
sourcePath: string;
}>;