用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/electron/osx-sign --skill verify命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | verify |
| description | Build-and-drive recipe for verifying @electron/osx-sign changes end-to-end on macOS. |
yarn build # tsc → dist/ (the bin/ CLIs import from dist/)
node bin/electron-osx-flat.mjs <App.app> [--implementation=js] [--platform=darwin|mas] [--pkg=out.pkg]
and node bin/electron-osx-sign.mjs <App.app> [...]. Both read from dist/, so build first.flat() / sign() from the package root export.Download a real Electron.app (cached by @electron/get after first run):
node -e '
const { downloadArtifact } = require("@electron/get");
const { extract } = require("@electron-internal/extract-zip");
downloadArtifact({ version: "35.0.3", platform: "darwin", arch: process.arch, artifactName: "electron" })
.then((zip) => extract(zip, { dir: process.argv[1] }))' /tmp/electron-dist
pkgutil --expand-full out.pkg expanded-dir then diff -r App.app expanded-dir/*.pkg/Payload/App.app
is the strongest check — it runs Apple's real extraction path. "Directory loop detected"
warnings from diff on framework symlinks are benign when they appear on both sides.lsbom <extracted Bom> validates the Bill-of-Materials.installer -pkg out.pkg -volinfo exercises Installer's package parsing without installing.com.apple.provenance xattrs, which
make native pkgbuild emit AppleDouble (._*) entries. When byte-comparing against
native output, filter ._* entries and renumber cpio inodes (see
spec/pkg-utils/helpers.ts normalizeCpio).spec/ci/generate-identity.sh;
without it, sign.spec.ts fails with "No identity found" (pre-existing on dev machines).yarn bench benchmarks the JS packager against the native tools;
OSX_SIGN_BENCH_APP=path points it at an existing .app.基于 SOC 职业分类