Skip to content

Commit bdd9c7c

Browse files
yiliang114qwencoder
andcommitted
fix(desktop-shell): address review findings for brand builder skill
- Add brand-builds/ to .gitignore (R1-19) - Validate logo is a file, not a directory (R1-8) - Document target-specific bundle path in SKILL.md (R1-17) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1 parent 7a83b9b commit bdd9c7c

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,6 @@ tmp/
139139
# Auto-generated computer-use marker can also appear under nested packages.
140140
**/.qwen/computer-use/
141141
.playwright-mcp/
142+
143+
# Brand build workspaces (created by the desktop-brand-builder skill)
144+
brand-builds/

packages/desktop-shell/.agents/skills/desktop-brand-builder/SKILL.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ npx tauri build --target aarch64-apple-darwin # explicit macOS arm64
143143

144144
For `target: all`, run only targets supported by the current machine or CI
145145
environment. Do not claim cross-platform artifacts were produced unless the
146-
files exist. Artifacts land under `packages/desktop-shell/src-tauri/target/release/bundle/`.
146+
files exist. Artifacts land under `packages/desktop-shell/src-tauri/target/release/bundle/`
147+
for the host target, or `src-tauri/target/<triple>/release/bundle/` when
148+
`--target <triple>` is used.
147149

148150
## Signing and Updates
149151

@@ -159,6 +161,7 @@ After packaging:
159161

160162
1. Confirm the expected artifact exists under
161163
`packages/desktop-shell/src-tauri/target/release/bundle/`
164+
(or `src-tauri/target/<triple>/release/bundle/` for cross-compile targets)
162165
(`dmg/`, `nsis/`, `appimage/`, or `deb/`).
163166
2. Compute `sha256sum` or `shasum -a 256` for each artifact.
164167
3. On macOS, run `hdiutil verify` for generated DMG files.

packages/desktop-shell/.agents/skills/desktop-brand-builder/scripts/brand-create.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
import { spawnSync } from 'node:child_process';
17-
import { copyFileSync, existsSync, readFileSync, writeFileSync } from 'node:fs';
17+
import { copyFileSync, existsSync, readFileSync, statSync, writeFileSync } from 'node:fs';
1818
import { extname, join, resolve } from 'node:path';
1919

2020
const BRAND_ID_RE = /^[a-z][a-z0-9-]*$/;
@@ -85,7 +85,7 @@ function loadConfig(path) {
8585
if (!brandId || !BRAND_ID_RE.test(brandId)) {
8686
fail(`brandId must match ${BRAND_ID_RE}`);
8787
}
88-
if (!logo || !existsSync(logo)) {
88+
if (!logo || !existsSync(logo) || !statSync(logo).isFile()) {
8989
fail(`logo must be an existing file path, got: ${input.logo}`);
9090
}
9191

0 commit comments

Comments
 (0)