/desktop:build-publishfrom desktop
桌面應用的建置與發佈通用流程——建置驗證、版號來源、目標平台矩陣、簽章與公證、安裝包(msi/dmg/AppImage 等)、輸出位置與桌面捷徑;附 Avalonia/dotnet publish 附錄。Use when 使用者說「建置」「build」「編譯」「發佈」「publish」「打包」「安裝包」「簽章」「產生執行檔」「single file」「self-contained」「release build」或要建立 Windows/macOS/Linux 可執行檔。
Ships in desktop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
流程:建置驗證 → 決定版號 → 決定目標平台 → 產出 → 打包安裝包 → 簽章 → 驗收。
先看專案的 *.csproj、package.json(electron-builder/tauri)、Cargo.toml,對照下表載入附錄,並在回報第一行寫「附錄:<檔名>」。
| 偵測到 | 附錄 |
|---|---|
*.csproj 引用 Avalonia | ${CLAUDE_PLUGIN_ROOT}/references/stacks/avalonia.md |
UseWPF、WinUI、Electron、Tauri | 目前無附錄,走下方退路 |
沒有對應附錄:照本 skill 的通用方法,加上專案既有的建置腳本與 CI 設定(先找 2–3 個同類檔當樣板;有裝 workspace 就照 workspace:convention-first(可選))。做完問使用者要不要把這次的寫法整理成新附錄 references/stacks/<stack>.md,回報寫「附錄:無(照既有程式)」。
先跑專案的標準建置與測試指令(README、CI、Makefile、package.json scripts 找得到的那支),確認能編譯、測試過再發佈。失敗時分析錯誤並提出修正,不帶著失敗發佈。
VERSION 檔),安裝包檔名、About 畫面、更新檢查都從它讀。使用者指定就用指定的;未指定時依目前作業系統與實際使用者環境挑選,不一次全發。
| 平台 | 常見架構 |
|---|---|
| Windows | x64、arm64 |
| macOS | arm64(Apple Silicon)、x64(Intel) |
| Linux | x64、arm64 |
| 平台 | 常見格式 |
|---|---|
| Windows | .msi/.exe 安裝程式(Inno Setup、WiX、MSIX)、免安裝 zip |
| macOS | .app bundle → .dmg 映像檔 |
| Linux | AppImage、.deb、.rpm、tar.gz |
macOS .app 是含 Contents/MacOS/、Contents/Info.plist、Contents/Resources/ 的目錄;.dmg 可用內建 hdiutil 從 .app 產生。專案已有打包腳本就用它,沒有再補。
<App>-<version>-<platform>-<arch>.<ext>。.lnk 指向執行檔。~/.local/share/applications/<app>.desktop,含 Exec=、Icon=。.app 拖入 /Applications 或建立 alias。What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kerryhuang/plugharbor --plugin desktop2 skills in this plugin
Other plugins' skills for the same job