pi-web-ui 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/pi-web-ui.mjs +7 -7
- package/package.json +1 -2
- package/web/dist/icon.ico +0 -0
- package/web/public/icon.ico +0 -0
- package/pi-web-ui.ico +0 -0
package/bin/pi-web-ui.mjs
CHANGED
|
@@ -297,9 +297,9 @@ const SHORTCUT_LNK_NAME = "pi-web-ui.lnk"; // Windows 桌面快捷方式
|
|
|
297
297
|
const SHORTCUT_MAC_NAME = "pi-web-ui.command"; // macOS 双击启动器
|
|
298
298
|
const SHORTCUT_LINUX_NAME = "pi-web-ui.desktop"; // Linux 桌面图标
|
|
299
299
|
|
|
300
|
-
/**
|
|
301
|
-
const APP_ICO_NAME = "pi-web-ui.ico";
|
|
302
|
-
const
|
|
300
|
+
/** 快捷方式图标(品牌 .ico,随包发布;.lnk / .desktop 指向它)。 */
|
|
301
|
+
const APP_ICO_NAME = "pi-web-ui.ico"; // 复制到用户目录后的稳定文件名
|
|
302
|
+
const APP_ICO_SOURCE = join(BIN_DIR, "..", "web", "public", "icon.ico"); // 包内品牌图标源文件
|
|
303
303
|
/** Branded SVG logo (source of truth: web/public/favicon.svg) — used on Linux. */
|
|
304
304
|
const APP_SVG_PACKAGE = join(BIN_DIR, "..", "web", "public", "favicon.svg");
|
|
305
305
|
|
|
@@ -455,10 +455,10 @@ function installWinShortcut(opts) {
|
|
|
455
455
|
mkdirSync(dirname(ps1Path), { recursive: true });
|
|
456
456
|
writeFileSync(ps1Path, "\uFEFF" + ps1, "utf8"); // PS 5.1 需要 BOM
|
|
457
457
|
// 把品牌图标准备好:复制到用户目录(.lnk 图标指向稳定路径)
|
|
458
|
-
if (existsSync(
|
|
459
|
-
copyFileSync(
|
|
458
|
+
if (existsSync(APP_ICO_SOURCE)) {
|
|
459
|
+
copyFileSync(APP_ICO_SOURCE, winIcoPath());
|
|
460
460
|
} else {
|
|
461
|
-
console.log(`⚠ 未找到品牌图标 ${
|
|
461
|
+
console.log(`⚠ 未找到品牌图标 ${APP_ICO_SOURCE},快捷方式将使用默认图标`);
|
|
462
462
|
}
|
|
463
463
|
const powershell = winPowershell();
|
|
464
464
|
const ps = [
|
|
@@ -623,7 +623,7 @@ Categories=Network;WebBrowser;
|
|
|
623
623
|
mkdirSync(scriptDir, { recursive: true });
|
|
624
624
|
// 品牌图标(缺失时跳过,桌面自动回退默认图标)
|
|
625
625
|
if (existsSync(APP_SVG_PACKAGE)) copyFileSync(APP_SVG_PACKAGE, svgPath);
|
|
626
|
-
else if (existsSync(
|
|
626
|
+
else if (existsSync(APP_ICO_SOURCE)) copyFileSync(APP_ICO_SOURCE, icoPath);
|
|
627
627
|
writeFileSync(scriptPath, script);
|
|
628
628
|
chmodSync(scriptPath, 0o755);
|
|
629
629
|
writeFileSync(desktopPath, desktop);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-web-ui",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Web chat interface for the pi coding agent, powered by the pi SDK (@earendil-works/pi-coding-agent) — one-command run, Docker/systemd/launchd deployable",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"dist/",
|
|
14
14
|
"web/dist/",
|
|
15
15
|
"web/public/",
|
|
16
|
-
"pi-web-ui.ico",
|
|
17
16
|
"deploy/",
|
|
18
17
|
"extensions/",
|
|
19
18
|
"README.md",
|
|
Binary file
|
|
Binary file
|
package/pi-web-ui.ico
DELETED
|
Binary file
|