Files
ObsidianPad/node_modules/app-builder-lib/out/binDownload.d.ts
T
dinlo 436a9631fc Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 18:44:04 +08:00

22 lines
1.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 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>;