跳轉到內容
supastack
瀏覽檔案
WebTanStack Start

For AI agents: fetch the complete documentation index at /llms.txt, the full documentation corpus at /llms-full.txt, the agent skill at /skill.md, or this page as Markdown at /zh-tw/docs/desktop/testing.md (or send Accept: text/markdown).

測試桌面外殼

執行 Rust 和啟動頁測試套件,驗證釋出配置,然後在每個目標系統上檢查已安裝產物。

詢問本指南
開啟方式

安裝與配置

桌面包有兩層自動化檢查:啟動頁進行語法檢查,Rust 套件覆蓋 URL 解析、導航門、深連結、更新器通道、縮放持久化和視窗偏好。 兩者都能在電腦上執行,無需打包安裝程式,因此在安裝構建版本之前請先從這裡開始。

corepack pnpm --filter @supastack/desktop test
corepack pnpm --filter @supastack/desktop typecheck
node apps/desktop/scripts/check-release-config.mjs

實現流程

check-release-config.mjs 驗證公開應用 URL、帶版本令牌的 HTTPS 更新器端點、公鑰和產品識別符號。每次釋出構建前執行它,讓佔位配置在本地失敗而不是被髮布。

驗證與排障

在每個目標系統上安裝構建產物,驗證托盤、喚起快捷鍵、始終置頂、最小化啟動、關閉到托盤、更新檢查、離線橫幅和會話持久化。單元測試證明規則;只有已安裝的應用能證明視窗。