Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
can use local icons
Tw93d55cafe00da0
diff --git a/bin/options/icon.ts b/bin/options/icon.tsindex 3f33c19b..10f7ed79 100644--- a/bin/options/icon.ts+++ b/bin/options/icon.ts@@ -344,6 +344,15 @@ export async function handleIcon(return result || resolvedPath;}+ // Check for existing local icon before downloading+ if (options.name) {+ const localIconPath = generateIconPath(options.name);+ if (await fsExtra.pathExists(localIconPath)) {+ logger.info(`✼ Using existing local icon: ${localIconPath}`);+ return localIconPath;+ }+ }+// Try favicon from websiteif (url && options.name) {const faviconPath = await tryGetFavicon(url, options.name);diff --git a/dist/cli.js b/dist/cli.jsindex 2f29f7dc..9cf296ca 100644--- a/dist/cli.js+++ b/dist/cli.js@@ -68,7 +68,7 @@ var scripts = {prepublishOnly: "pnpm run cli:build"};var type = "module";-var exports$1 = "./dist/cli.js";+var exports = "./dist/cli.js";var license = "MIT";var dependencies = {"@tauri-apps/api": "^2.9.1",@@ -126,7 +126,7 @@ var packageJson = {files: files,scripts: scripts,type: type,- exports: exports$1,+ exports: exports,license: license,dependencies: dependencies,devDependencies: devDependencies,@@ -1640,6 +1640,14 @@ async function handleIcon(options, url) {const result = await processIcon(resolvedPath, options.name || '');return result || resolvedPath;}+ // Check for existing local icon before downloading+ if (options.name) {+ const localIconPath = generateIconPath(options.name);+ if (await fsExtra.pathExists(localIconPath)) {+ logger.info(`✼ Using existing local icon: ${localIconPath}`);+ return localIconPath;+ }+ }// Try favicon from websiteif (url && options.name) {const faviconPath = await tryGetFavicon(url, options.name);