fix: reduce desktop package size and loose files

Exclude validation outputs from desktop packages, ship renderer-only dependencies through Vite bundles, and omit DS Web type declarations, source maps, and PDB symbols. Preserve runtime assets and licenses without changing dependency versions.

Validate builder filters, production build and type checks, Windows packaged runtime smoke paths, and App page loading. Record measured size reductions and remaining validation limits in BUILD.md.

Release note: 减少桌面安装包中的重复依赖和非运行文件,降低安装后的磁盘占用与零散文件数量。
This commit is contained in:
mesalogo
2026-09-28 20:10:19 +08:00
parent 1c6264dd87
commit 594222a2b5
8 changed files with 440 additions and 59 deletions
+5 -1
View File
@@ -8890,7 +8890,11 @@ function App(): React.JSX.Element {
}}
>
<span className="conversation-item__primary">
{conversation.pinned && <Pin className="conversation-pin" size={13} role="img" aria-label={t("conversation.actions.pinned")}><title>{t("conversation.actions.pinned")}</title></Pin>}
{conversation.pinned && (
<span className="conversation-pin">
<Pin size={13} role="img" aria-label={t("conversation.actions.pinned")}><title>{t("conversation.actions.pinned")}</title></Pin>
</span>
)}
{branchSourceTitle && (
<ConversationBranchBadge
sourceTitle={branchSourceTitle}
+6
View File
@@ -12554,7 +12554,13 @@ textarea.field-control {
}
.conversation-pin {
display: inline-flex;
width: 20px;
height: 18px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
margin-right: var(--space-1);
color: var(--text-secondary);
}