Initial commit

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
dinlo
2026-05-31 18:44:04 +08:00
commit 436a9631fc
8616 changed files with 1389957 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
/**
* Deterministic <length>-character URL-safe hash (az09)
*/
export declare function hashUrlSafe(input: string, length?: number): string;
/**
* Get cache directory for electron-builder
*/
export declare function getCacheDirectory(isAvoidSystemOnWindows?: boolean): string;
/**
* Downloads an artifact from GitHub releases (convenience wrapper)
*/
export declare function downloadArtifact(options: {
releaseName: string;
filenameWithExt: string;
checksums: Record<string, string>;
githubOrgRepo?: string;
}): Promise<string>;
export declare function download(url: string, output: string, checksum?: string | null): Promise<void>;
export declare function getBinFromCustomLoc(name: string, version: string, binariesLocUrl: string, checksum: string): Promise<string>;
export declare function getBinFromUrl(releaseName: string, filenameWithExt: string, checksum: string, githubOrgRepo?: string): Promise<string>;
export declare function getBin(cacheKey: string, url?: string | null, checksum?: string | null): Promise<string>;