Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
release: prepare v3.0.0 with curated desktop assets
wulienbf671efb51ba
diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.ymlindex 9b63db4f..5569bc81 100644--- a/.github/workflows/desktop-release.yml+++ b/.github/workflows/desktop-release.yml@@ -54,7 +54,7 @@ jobs:--jq 'length')"if [[ "$successful_runs" != "1" ]]; then- echo "::error::提交 $GITHUB_SHA 尚无成功的手动 CI,请先在 main 上运行 CI 并等待通过,再创建发布标签。"+ echo "::error::提交 $GITHUB_SHA 尚无成功的手动 CI,请先在 master 上运行 CI 并等待通过,再创建发布标签。"exit 1fi- name: 选择 Desktop 构建平台@@ -161,60 +161,52 @@ jobs:env:OPENCREATOR_DESKTOP_TARGET_PLATFORM: ${{ matrix.platform }}OPENCREATOR_DESKTOP_TARGET_ARCH: ${{ matrix.arch }}- - name: 写入 Windows 未签名说明- if: matrix.platform == 'win32'- shell: pwsh- run: |- @"- OpenCreator Windows x64 installer- This installer is not Authenticode signed.- Verify the installer with SHA256SUMS.txt before running it.- Commit: $env:GITHUB_SHA- "@ | Set-Content `- -Path apps/desktop/release/WINDOWS-UNSIGNED.txt `- -Encoding utf8NoBOM- name: 验证实际打包应用run: pnpm --filter @opencreator/desktop e2e:package- - uses: actions/upload-artifact@v4+ - name: 上传用户发布附件+ uses: actions/upload-artifact@v4with:name: ${{ matrix.artifact }}+ path: ${{ env.OPENCREATOR_DESKTOP_RELEASE_ASSETS }}/*+ if-no-files-found: error+ - name: 保留内部构建诊断+ if: always()+ uses: actions/upload-artifact@v4+ with:+ name: desktop-build-diagnostics-${{ matrix.name }}path: |- apps/desktop/release/*.dmg- apps/desktop/release/*.zip- apps/desktop/release/*.exe- apps/desktop/release/*.blockmap- apps/desktop/release/latest*.ymlapps/desktop/release/opencreator-desktop-build-manifest-*.json- apps/desktop/release/krillinai-*- apps/desktop/release/WINDOWS-UNSIGNED.txt- if-no-files-found: error+ apps/desktop/release/builder-debug.yml+ apps/desktop/release/builder-effective-config.yaml+ test-results/desktop-playwright-report/+ if-no-files-found: ignore+ retention-days: 14publish:if: startsWith(github.ref, 'refs/tags/v')needs: packageruns-on: ubuntu-lateststeps:+ - uses: actions/checkout@v4+ - uses: actions/setup-node@v4+ with:+ node-version: 22- uses: actions/download-artifact@v4with:path: artifactspattern: opencreator-desktop-*merge-multiple: true- - name: 生成发布校验文件- shell: bash- run: |- (- cd artifacts- find . -maxdepth 1 -type f ! -name SHA256SUMS.txt -print0 \- | LC_ALL=C sort -z \- | xargs -0 sha256sum \- | sed 's# \./# #' \- > SHA256SUMS.txt- )+ - name: 校验发布附件并生成下载说明+ env:+ TAG: ${{ github.ref_name }}+ GH_REPO: ${{ github.repository }}+ run: node apps/desktop/scripts/release-assets.mjs artifacts "$TAG" "$GH_REPO" release-notes.md- name: 发布 GitHub Releaseenv:GH_TOKEN: ${{ github.token }}GH_REPO: ${{ github.repository }}TAG: ${{ github.ref_name }}run: |- gh release view "$TAG" >/dev/null 2>&1 || gh release create "$TAG" --generate-notes- find artifacts -type f -print0 | xargs -0 gh release upload "$TAG" --clobber+ gh release view "$TAG" >/dev/null 2>&1 || gh release create "$TAG" --verify-tag --draft --title "KrillinAI $TAG" --notes-file release-notes.md+ find artifacts -maxdepth 1 -type f -print0 | xargs -0 gh release upload "$TAG" --clobber+ gh release edit "$TAG" --draft=false --latest --title "KrillinAI $TAG" --notes-file release-notes.mddiff --git a/apps/desktop/electron-builder.yml b/apps/desktop/electron-builder.ymlindex 5579e2ec..cb28e1b5 100644--- a/apps/desktop/electron-builder.yml+++ b/apps/desktop/electron-builder.yml@@ -1,5 +1,6 @@appId: com.opencreator.desktopproductName: OpenCreator+artifactName: KrillinAI-${version}-${os}-${arch}.${ext}asar: truenpmRebuild: falseelectronFuses:@@ -59,7 +60,7 @@ protocols:publish:provider: githubowner: krillinai- repo: OpenCreator+ repo: KrillinAIafterPack: ./scripts/sign-creator-runtime-after-pack.mjsafterSign: ./scripts/notarize-after-sign.mjsmac:diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex 5561a6f5..6bbc8c46 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -1,6 +1,6 @@{"name": "@opencreator/desktop",- "version": "0.1.3",+ "version": "3.0.0","private": true,"description": "OpenCreator 本地 Codex Dashboard","author": "OpenCreator",diff --git a/apps/desktop/scripts/package-release.mjs b/apps/desktop/scripts/package-release.mjsindex 75d04799..c74dc90e 100644--- a/apps/desktop/scripts/package-release.mjs+++ b/apps/desktop/scripts/package-release.mjs@@ -1,6 +1,5 @@import {appendFileSync,- copyFileSync,existsSync,mkdirSync,readFileSync,@@ -28,6 +27,7 @@ import {import { submitAndWaitForNotarization } from './apple-notarization.mjs';import { prepareElectronBuilderCache } from './electron-builder-cache.mjs';import { runStage } from './script-utils.mjs';+import { stageReleaseAssets } from './release-assets.mjs';const scriptDir = dirname(fileURLToPath(import.meta.url));const desktopDir = resolve(scriptDir, '..');@@ -76,7 +76,6 @@ await runStage('构建 KrillinAI CLI 与 Server', process.execPath, [env,timeoutMs: 10 * 60_000});-copyKrillinReleaseArtifacts();await runStage('构建 Desktop', 'pnpm', ['--filter', '@opencreator/desktop', 'build'], {cwd: rootDir,env,@@ -218,6 +217,16 @@ await runStage('验证桌面包', process.execPath, [timeoutMs: 5 * 60_000});+if (mode !== 'dir') {+ const packageJson = JSON.parse(readFileSync(join(desktopDir, 'package.json'), 'utf8'));+ const assetsDir = join(releaseDir, 'publish', `${platform}-${arch}`);+ const assets = stageReleaseAssets({ manifest, version: packageJson.version, assetsDir });+ console.log(`[desktop-package] 发布附件:${assetsDir} (${assets.length} files)`);+ if (process.env.GITHUB_ENV) {+ appendFileSync(process.env.GITHUB_ENV, `OPENCREATOR_DESKTOP_RELEASE_ASSETS=${assetsDir}\n`);+ }+}+function parseMode(args) {if (args.includes('--dir')) return 'dir';if (args.includes('--dist')) return 'dist';@@ -225,23 +234,6 @@ function parseMode(args) {throw new Error(`Unsupported Desktop package mode: ${args.join(' ')}`);}-function copyKrillinReleaseArtifacts() {- const buildRoot = resolve(- env.OPENCREATOR_KRILLINAI_BUILD_OUTPUT- ?? join(rootDir, '.runtime', 'build', 'krillinai', `${platform}-${arch}`)- );- const buildManifestPath = join(buildRoot, 'manifest.json');- const buildManifest = JSON.parse(readFileSync(buildManifestPath, 'utf8'));- for (const binary of Object.values(buildManifest.binaries ?? {})) {- const source = resolve(buildRoot, binary.artifact);- copyFileSync(source, join(releaseDir, basename(source)));- }- copyFileSync(- buildManifestPath,- join(releaseDir, `krillinai-build-manifest-${platform}-${arch}.json`)- );-}-function normalizePlatform(value) {if (value === 'mac') return 'darwin';if (value === 'win') return 'win32';diff --git a/apps/desktop/scripts/release-assets.mjs b/apps/desktop/scripts/release-assets.mjsnew file mode 100644index 00000000..e73708cd--- /dev/null+++ b/apps/desktop/scripts/release-assets.mjs@@ -0,0 +1,117 @@+import { createHash } from 'node:crypto';+import { copyFileSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs';+import { basename, join, resolve } from 'node:path';+import { fileURLToPath } from 'node:url';++const releasePlatforms = [+ { platform: 'darwin', arch: 'arm64', label: 'macOS Apple Silicon' },+ { platform: 'darwin', arch: 'x64', label: 'macOS Intel' },+ { platform: 'win32', arch: 'x64', label: 'Windows x64' }+];++export function releaseAssetNames(version, platform, arch) {+ if (!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(version)) {+ throw new Error(`Invalid release version: ${version}`);+ }+ if (!releasePlatforms.some(target => target.platform === platform && target.arch === arch)) {+ throw new Error(`Unsupported release platform: ${platform}-${arch}`);+ }+ const prefix = `KrillinAI-${version}-${platform === 'darwin' ? 'mac' : 'win'}-${arch}`;+ if (platform === 'win32') return [`${prefix}.exe`, 'latest.yml'];+ return [+ `${prefix}.dmg`,+ `${prefix}.zip`,+ `${prefix}.zip.blockmap`,+ arch === 'x64' ? 'latest-x64-mac.yml' : 'latest-mac.yml'+ ];+}++function sha256(path) {+ return createHash('sha256').update(readFileSync(path)).digest('hex');+}++export function stageReleaseAssets({ manifest, version, assetsDir }) {+ const names = releaseAssetNames(version, manifest.platform, manifest.arch);+ const selected = names.map(name => {+ const matches = manifest.artifacts.filter(artifact => basename(artifact.path) === name);+ if (matches.length !== 1) throw new Error(`Expected one verified release asset: ${name}`);+ const artifact = matches[0];+ if (statSync(artifact.path).size !== artifact.bytes || sha256(artifact.path) !== artifact.sha256) {+ throw new Error(`Release asset changed after package verification: ${name}`);+ }+ if (resolve(artifact.path) === resolve(assetsDir, name)) {+ throw new Error('Release staging directory must differ from build output');+ }+ return artifact;+ });++ // Only recreate the dedicated staging directory after all inputs are verified.+ rmSync(assetsDir, { recursive: true, force: true });+ mkdirSync(assetsDir, { recursive: true });+ for (const artifact of selected) {+ copyFileSync(artifact.path, join(assetsDir, basename(artifact.path)));+ }+ writeChecksums(assetsDir, names);+ return [...names, 'SHA256SUMS.txt'];+}++function writeChecksums(directory, names) {+ const lines = [...names].sort().map(name => `${sha256(join(directory, name))} ${name}`);+ writeFileSync(join(directory, 'SHA256SUMS.txt'), `${lines.join('\n')}\n`);+}++export function finalizeReleaseAssets({ directory, version, repository }) {+ const expected = releasePlatforms.flatMap(({ platform, arch }) => releaseAssetNames(version, platform, arch));+ const actual = readdirSync(directory, { withFileTypes: true });+ for (const entry of actual) {+ if (!entry.isFile() || (!expected.includes(entry.name) && entry.name !== 'SHA256SUMS.txt')) {+ throw new Error(`Unexpected public release asset: ${entry.name}`);+ }+ }+ for (const name of expected) {+ if (!actual.some(entry => entry.name === name)) throw new Error(`Missing release asset: ${name}`);+ }+ writeChecksums(directory, expected);+ const downloadRoot = `https://github.com/${repository}/releases/download/v${version}`;+ const rows = releasePlatforms.map(({ platform, arch, label }) => {+ const installer = releaseAssetNames(version, platform, arch)[0];+ return `| ${label} | [${installer}](${downloadRoot}/${installer}) |`;+ });+ return [+ `# KrillinAI v${version}`,+ '',+ '## 下载',+ '',+ '| 平台 | 安装包 |',+ '| --- | --- |',+ ...rows,+ '',+ `[SHA-256 校验清单](${downloadRoot}/SHA256SUMS.txt)`,+ '',+ 'macOS 安装包已签名并公证。Windows 安装包暂未进行 Authenticode 签名,安装前可核对 SHA-256。',+ '',+ '<details>',+ '<summary>自动更新附件</summary>',+ '',+ 'ZIP、ZIP blockmap 和 latest YAML 供客户端自动更新使用,手动安装只需下载上表对应的安装包。',+ '构建清单、调试配置和独立 CLI/Server 程序不作为桌面版下载附件发布。',+ '',+ '</details>',+ ''+ ].join('\n');+}++if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {+ try {+ const [directory, tag, repository, notesPath] = process.argv.slice(2);+ if (!directory || !tag?.startsWith('v') || !repository || !notesPath) {+ throw new Error('Usage: node release-assets.mjs <assets-directory> <vVERSION> <owner/repo> <notes-file>');+ }+ const notes = finalizeReleaseAssets({ directory, version: tag.slice(1), repository });+ writeFileSync(notesPath, notes);+ console.log(`Verified ${readdirSync(directory).length} public release assets for ${tag}`);+ } catch (error) {+ console.error(error instanceof Error ? error.message : String(error));+ process.exitCode = 1;+ }+}diff --git a/apps/desktop/test/release-assets.test.mjs b/apps/desktop/test/release-assets.test.mjsnew file mode 100644index 00000000..76259fc9--- /dev/null+++ b/apps/desktop/test/release-assets.test.mjs@@ -0,0 +1,94 @@+import { createHash } from 'node:crypto';+import { mkdtempSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join, resolve } from 'node:path';+import { afterEach, describe, expect, it } from 'vitest';+import { finalizeReleaseAssets, releaseAssetNames, stageReleaseAssets } from '../scripts/release-assets.mjs';++const version = '3.0.0';+const directories = [];++afterEach(() => {+ for (const directory of directories.splice(0)) rmSync(directory, { recursive: true, force: true });+});++function fixture(platform = 'darwin', arch = 'arm64') {+ const directory = mkdtempSync(join(tmpdir(), 'krillinai-release-assets-'));+ directories.push(directory);+ const assetsDir = join(directory, 'publish');+ const names = releaseAssetNames(version, platform, arch);+ const artifacts = names.map(name => {+ const path = join(directory, name);+ const content = Buffer.from(`verified content for ${name}`);+ writeFileSync(path, content);+ return { path, bytes: content.length, sha256: createHash('sha256').update(content).digest('hex') };+ });+ return { directory, assetsDir, manifest: { platform, arch, artifacts } };+}++describe('Desktop release assets', () => {+ it('publishes only verified installers and required updater files, without stale assets', () => {+ const data = fixture();+ const extraNames = [+ 'krillinai-cli-darwin-arm64', 'krillinai-build-manifest-darwin-arm64.json',+ 'builder-effective-config.yaml', 'KrillinAI-3.0.0-mac-arm64.dmg.blockmap'+ ];+ for (const name of extraNames) {+ const path = join(data.directory, name);+ writeFileSync(path, 'internal');+ data.manifest.artifacts.push({ path });+ }+ mkdirSync(data.assetsDir);+ writeFileSync(join(data.assetsDir, 'old-version.dmg'), 'stale');+ stageReleaseAssets({ ...data, version });+ expect(readdirSync(data.assetsDir).sort()).toEqual([+ ...releaseAssetNames(version, 'darwin', 'arm64'), 'SHA256SUMS.txt'+ ].sort());+ expect(readFileSync(join(data.assetsDir, 'SHA256SUMS.txt'), 'utf8')).not.toMatch(/internal|manifest|old-version/);+ });++ it('rejects missing updater artifacts and modified package files before altering staged output', () => {+ const data = fixture('win32', 'x64');+ mkdirSync(data.assetsDir);+ writeFileSync(join(data.assetsDir, 'previous.exe'), 'preserved');+ const complete = [...data.manifest.artifacts];+ data.manifest.artifacts.pop();+ expect(() => stageReleaseAssets({ ...data, version })).toThrow('latest.yml');+ data.manifest.artifacts = complete;+ writeFileSync(complete[0].path, 'modified');+ expect(() => stageReleaseAssets({ ...data, version })).toThrow('changed after package verification');+ expect(readFileSync(join(data.assetsDir, 'previous.exe'), 'utf8')).toBe('preserved');+ });++ it('isolates macOS architectures and rejects unsupported targets or unsafe versions', () => {+ expect(releaseAssetNames(version, 'darwin', 'x64')).toContain('latest-x64-mac.yml');+ expect(releaseAssetNames(version, 'darwin', 'arm64')).toContain('latest-mac.yml');+ expect(() => releaseAssetNames(version, 'linux', 'x64')).toThrow('Unsupported');+ expect(() => releaseAssetNames('../3.0.0', 'win32', 'x64')).toThrow('Invalid release version');+ });++ it('finalizes 11 public assets with platform download links and checksums', () => {+ const data = fixture();+ for (const [platform, arch] of [['darwin', 'x64'], ['win32', 'x64']]) {+ for (const name of releaseAssetNames(version, platform, arch)) writeFileSync(join(data.directory, name), name);+ }+ const notes = finalizeReleaseAssets({ directory: data.directory, version, repository: 'krillinai/KrillinAI' });+ expect(readdirSync(data.directory)).toHaveLength(11);+ expect(readFileSync(join(data.directory, 'SHA256SUMS.txt'), 'utf8').trim().split('\n')).toHaveLength(10);+ expect(notes).toContain('https://github.com/krillinai/KrillinAI/releases/download/v3.0.0/KrillinAI-3.0.0-win-x64.exe');+ expect(notes).toContain('macOS Apple Silicon');+ expect(notes).toContain('Authenticode');+ writeFileSync(join(data.directory, 'builder-debug.yml'), 'private diagnostic');+ expect(() => finalizeReleaseAssets({ directory: data.directory, version, repository: 'krillinai/KrillinAI' })).toThrow('Unexpected public release asset');+ rmSync(join(data.directory, 'builder-debug.yml'));+ rmSync(join(data.directory, 'latest.yml'));+ expect(() => finalizeReleaseAssets({ directory: data.directory, version, repository: 'krillinai/KrillinAI' })).toThrow('Missing release asset');+ });++ it('uses versioned platform filenames and the new repository for automatic updates', () => {+ const config = readFileSync(resolve(process.cwd(), 'electron-builder.yml'), 'utf8');+ expect(config).toContain('artifactName: KrillinAI-${version}-${os}-${arch}.${ext}');+ expect(config).toContain('repo: KrillinAI');+ expect(config).not.toContain('repo: OpenCreator');+ });+});diff --git a/apps/desktop/test/release-workflow.test.mjs b/apps/desktop/test/release-workflow.test.mjsindex 2912aecb..48dd0e4e 100644--- a/apps/desktop/test/release-workflow.test.mjs+++ b/apps/desktop/test/release-workflow.test.mjs@@ -50,14 +50,15 @@ describe('Desktop release workflow', () => {expect(releaseWorkflow).toContain('"artifact":"opencreator-desktop-windows-x64-unsigned"');- expect(releaseWorkflow).toContain('WINDOWS-UNSIGNED.txt');+ expect(releaseWorkflow).not.toContain('WINDOWS-UNSIGNED.txt');});- it('reuses the successful main CI instead of repeating all tests', () => {+ it('reuses the successful master CI instead of repeating all tests', () => {expect(releaseWorkflow).toContain('name: 校验同一提交的 CI 已通过');expect(releaseWorkflow).toContain('--workflow ci.yml');expect(releaseWorkflow).toContain('--event workflow_dispatch');expect(releaseWorkflow).toContain('--status success');+ expect(releaseWorkflow).toContain('先在 master 上运行 CI');expect(releaseWorkflow).not.toContain('run: pnpm test');expect(releaseWorkflow).not.toContain('run: pnpm typecheck');expect(releaseWorkflow).not.toContain('run: pnpm build');@@ -82,14 +83,19 @@ describe('Desktop release workflow', () => {);});- it('publishes unique build manifests and a SHA-256 checksum list', () => {+ it('keeps build diagnostics separate from validated public release assets', () => {expect(releaseWorkflow).toContain('opencreator-desktop-build-manifest-${{ matrix.platform }}-${{ matrix.arch }}.json');expect(releaseWorkflow).toContain('pattern: opencreator-desktop-*');expect(releaseWorkflow).toContain('merge-multiple: true');- expect(releaseWorkflow).toContain('sha256sum');- expect(releaseWorkflow).toContain('SHA256SUMS.txt');+ expect(releaseWorkflow).toContain('name: desktop-build-diagnostics-${{ matrix.name }}');+ expect(releaseWorkflow).toContain('path: ${{ env.OPENCREATOR_DESKTOP_RELEASE_ASSETS }}/*');+ expect(releaseWorkflow).toContain('release-assets.mjs artifacts');+ expect(releaseWorkflow).not.toContain('apps/desktop/release/*.exe');+ expect(releaseWorkflow).not.toContain('apps/desktop/release/krillinai-*');+ expect(releaseWorkflow).toContain('--verify-tag --draft');+ expect(releaseWorkflow).toContain('--draft=false --latest');});it('invalidates the Desktop cache when Creator Runtime releases change', () => {diff --git a/docs/operations/opencreator-desktop-release-runbook.md b/docs/operations/opencreator-desktop-release-runbook.mdindex 6cae8b1f..bdf2a460 100644--- a/docs/operations/opencreator-desktop-release-runbook.md+++ b/docs/operations/opencreator-desktop-release-runbook.md@@ -1,4 +1,4 @@-# OpenCreator Desktop 发布手册+# KrillinAI Desktop 发布手册## 1. 适用范围@@ -37,15 +37,15 @@ pnpm desktop:package1. 更新 `apps/desktop/package.json` 的版本。2. 确认 GitHub Release 发布权限、签名凭据和目标版本更新元数据流程可用。-3. 创建并推送 `v<version>` Git tag 触发 `.github/workflows/desktop-release.yml`。标签版本必须与 `apps/desktop/package.json` 完全一致。-4. CI 先运行全仓验证,再使用 `macos-15-intel`、`macos-15` 和 `windows-latest` 并行构建三个原生目标平台。-5. 标签构建成功后,CI 将安装包和更新元数据上传到 GitHub Release。+3. 先推送版本提交到 `master`,手动运行 CI 并等待同一提交验证通过,再创建并推送 `v<version>` Git tag 触发 `.github/workflows/desktop-release.yml`。标签版本必须与 `apps/desktop/package.json` 完全一致。+4. 发布工作流复用同一提交的 CI 结果,再使用 `macos-15-intel`、`macos-15` 和 `windows-latest` 并行构建三个原生目标平台。+5. 三个平台的实际打包应用 E2E 通过后,CI 校验附件白名单,生成下载说明与校验清单,上传完成后才公开 GitHub Release。示例:```bash-git tag v0.1.0-git push origin v0.1.0+git tag -a v3.0.0 -m "KrillinAI v3.0.0"+git push origin v3.0.0```## 4. macOS 签名与公证@@ -100,18 +100,23 @@ CI secrets:```textprovider: githubowner: krillinai-repo: OpenCreator+repo: KrillinAI```生产运行时不依赖 `OPENCREATOR_UPDATE_URL`。测试通过注入 fake updater 隔离,不允许把开发覆盖写入正式包。-GitHub Release 至少包含:+GitHub Release 仅发布 11 个附件,另外 2 个源码归档由 GitHub 自动生成:-1. macOS arm64 的 `latest-mac.yml`、DMG/ZIP 和 blockmap。-2. macOS x64 的 `latest-x64-mac.yml`、DMG/ZIP 和 blockmap。-3. Windows x64 的 `latest.yml`、NSIS EXE 和 blockmap。-4. 每个平台独立命名的 Desktop 构建清单。-5. 文件名、版本和 SHA512 与 Electron Builder 产物一致。+1. macOS arm64:`KrillinAI-<version>-mac-arm64.dmg`、对应 ZIP、ZIP blockmap 和 `latest-mac.yml`。+2. macOS x64:`KrillinAI-<version>-mac-x64.dmg`、对应 ZIP、ZIP blockmap 和 `latest-x64-mac.yml`。+3. Windows x64:`KrillinAI-<version>-win-x64.exe` 和 `latest.yml`。+4. 一份 `SHA256SUMS.txt`,覆盖以上 10 个文件。++安装包、更新文件的文件名、版本和 SHA512 保持 Electron Builder 原始输出,不在构建后重命名。macOS 更新使用 ZIP,其 DMG blockmap 不进入发布附件;Windows 当前关闭差分包,不生成独立 blockmap。++打包脚本按本次构建清单检查文件哈希,仅将白名单附件整理到 `apps/desktop/release/publish/<platform>-<arch>/`,该目录还包含本平台校验清单。发布任务合并平台附件后重新生成总校验清单;任何缺失或额外附件都会阻止发布。++Desktop 构建清单、builder 调试配置和 E2E 报告仅保留在 `desktop-build-diagnostics-*` CI Artifact,保存 14 天。独立 CLI/Server 继续在 `.runtime/build/krillinai/` 构建,不复制到桌面发布目录。Windows 未签名说明放在 Release 正文,不再生成独立 TXT 附件。客户端行为: