A local-first multi-agent app development platform, built on PenguinHarness
chore(desktop): ignore the packaging artifacts on every branch (#331)
Myriad-Dreamin25dc53e5ebd9
diff --git a/changelog/unreleased/2026-08-19-ignore-desktop-build-artifacts.md b/changelog/unreleased/2026-08-19-ignore-desktop-build-artifacts.mdnew file mode 100644index 00000000..e5e7cbb6--- /dev/null+++ b/changelog/unreleased/2026-08-19-ignore-desktop-build-artifacts.md@@ -0,0 +1,15 @@+# Desktop packaging artifacts are ignored on every branch++- **Date:** 2026-08-19+- **Type:** process+- **Scope:** `desktop`+- **PR:** [#331](https://github.com/Prism-Shadow/penguin-harness/pull/331)++[中文版](2026-08-19-ignore-desktop-build-artifacts.zh.md)++`packages/desktop/.gitignore` now names every path a desktop packaging run writes — `bin/`, `out/`, `skills/` and `stage/` — so a run leaves nothing untracked behind on any branch.++## Details++- `bin/` holds the generated `penguin` / `penguin.cmd` launchers, `out/` is electron-builder output, `skills/` is a copy of `packages/skills/skills`, which is tracked at its source, and `stage/` is the assembled app directory on branches that stage before packing.+- The scripts that write those paths do not exist on every branch, and each branch's `.gitignore` covered only what its own scripts produce. The artifacts outlive a branch switch, so a working copy on any other branch held them untracked and unignored — 340 MB of unpacked application one `git add -A` away from a commit.diff --git a/changelog/unreleased/2026-08-19-ignore-desktop-build-artifacts.zh.md b/changelog/unreleased/2026-08-19-ignore-desktop-build-artifacts.zh.mdnew file mode 100644index 00000000..ef80bcc0--- /dev/null+++ b/changelog/unreleased/2026-08-19-ignore-desktop-build-artifacts.zh.md@@ -0,0 +1,15 @@+# 桌面端打包产物在所有分支上都被忽略++- **Date:** 2026-08-19+- **Type:** process+- **Scope:** `desktop`+- **PR:** [#331](https://github.com/Prism-Shadow/penguin-harness/pull/331)++[English](2026-08-19-ignore-desktop-build-artifacts.md)++`packages/desktop/.gitignore` 现在列出了桌面端打包运行会写入的每一个路径——`bin/`、`out/`、`skills/` 与 `stage/`——于是无论在哪个分支上,打包运行后都不会留下未被跟踪的文件。++## 细节++- `bin/` 存放生成的 `penguin` / `penguin.cmd` 启动器,`out/` 是 electron-builder 的输出,`skills/` 是 `packages/skills/skills` 的一份副本——其源头本身已被跟踪,`stage/` 则是在打包前先行装配的分支上留下的那份完整应用目录。+- 写入这些路径的脚本并不存在于每个分支上,而每个分支的 `.gitignore` 只覆盖了自家脚本产出的那几条。产物却会在切换分支后留存下来,于是任何其他分支上的工作区都持有着这些既未跟踪、也未被忽略的文件——340 MB 的解包应用,距离一次 `git add -A` 只有一步之遥。diff --git a/packages/desktop/.gitignore b/packages/desktop/.gitignoreindex 508d1baa..9337c7c6 100644--- a/packages/desktop/.gitignore+++ b/packages/desktop/.gitignore@@ -1,3 +1,12 @@+# Artifacts of a desktop packaging run. The scripts that write them do not live on+# every branch, but the files they leave behind outlive a branch switch — an ignore+# rule only where the generator lives leaves 340 MB of unpacked app untracked and+# unignored in every other working copy, one `git add -A` away from a commit.+# bin/ — generated `penguin` / `penguin.cmd` CLI launchers+# out/ — electron-builder output+# skills/ — a copy of packages/skills/skills, which is tracked at its source+# stage/ — the assembled app directory, on branches that stage before packingbin/out/skills/+stage/