Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

Merge main into feat/macos-icon-composer

Tw9354d51a342e02
diff --cc bin/options/icon.ts
index 387aecbb,617eb5df..fcf2ba30
--- a/bin/options/icon.ts
+++ b/bin/options/icon.ts
@@@ -708,15 -686,8 +717,17 @@@ export async function downloadIcon
showSpinner = true,
customTimeout?: number,
): Promise<string | null> {
+ if (isIconComposerUrl(iconUrl)) {
+ if (showSpinner) {
+ logger.warn(
+ '✼ Icon Composer .icon packages cannot be downloaded from a URL; pass a local path.',
+ );
+ }
+ return null;
+ }
+
+ throwIfBuildCancelled();
+ const buildSignal = getBuildCancellationSignal();
const controller = new AbortController();
const timeoutId = setTimeout(() => {
controller.abort();
diff --cc dist/cli.js
index 24baf265,1872670a..daf4797d
--- a/dist/cli.js
+++ b/dist/cli.js
@@@ -3600,12 -3341,8 +3606,14 @@@ async function tryGetFavicon(url, appNa
* Downloads icon from URL
*/
async function downloadIcon(iconUrl, showSpinner = true, customTimeout) {
+ if (isIconComposerUrl(iconUrl)) {
+ if (showSpinner) {
+ logger.warn('✼ Icon Composer .icon packages cannot be downloaded from a URL; pass a local path.');
+ }
+ return null;
+ }
+ throwIfBuildCancelled();
+ const buildSignal = getBuildCancellationSignal();
const controller = new AbortController();
const timeoutId = setTimeout(() => {
controller.abort();