From 9252eb4beabfa92eb4917942848139182cacee5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ACT=E4=B8=B6=E6=B5=81=E6=98=9F=E9=9B=A8?= <1340145680@qq.com> Date: Sun, 5 Apr 2026 10:59:32 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=89=93=E5=8C=85?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 249 ++++++++++++++++++++------- src/agents/productionAgent/index.ts | 1 + src/agents/scriptAgent/index.ts | 1 + src/routes/script/extractAssets.ts | 4 - src/socket/routes/productionAgent.ts | 1 + src/socket/routes/scriptAgent.ts | 1 + src/types/database.d.ts | 19 +- 7 files changed, 189 insertions(+), 87 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 83cd314..af9da84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Build and Release +name: 构建发布 on: push: @@ -6,136 +6,254 @@ on: - "v*" workflow_dispatch: inputs: - version: - description: "Version number (e.g., 1.0.0)" + debug: + description: "启用调试模式" required: false - type: string + type: boolean + default: false + +env: + NODE_VERSION: "24" jobs: - build-windows: + # ==================== Windows 构建 ==================== + 构建-Windows: + strategy: + fail-fast: false + matrix: + arch: [x64, arm64] + runs-on: windows-latest + name: 构建 Windows (${{ matrix.arch }}) steps: - - name: Checkout code + - name: 检出代码 uses: actions/checkout@v4 - - name: Setup Node.js + - name: 配置 Node.js uses: actions/setup-node@v4 with: - node-version: "24" - cache: "yarn" + node-version: ${{ env.NODE_VERSION }} - - name: Install dependencies + - name: 缓存依赖 + uses: actions/cache@v4 + id: cache + with: + path: node_modules + key: windows-${{ matrix.arch }}-modules-${{ hashFiles('yarn.lock') }} + + - name: 安装依赖 + if: steps.cache.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile + env: + npm_config_arch: ${{ matrix.arch }} - - name: Build application + - name: 调试 - 显示环境信息 + if: ${{ inputs.debug }} + run: | + echo "===== 系统信息 =====" + systeminfo | findstr /B /C:"OS" + echo "===== Node 版本 =====" + node -v + echo "===== Yarn 版本 =====" + yarn -v + echo "===== 目标架构 =====" + echo "${{ matrix.arch }}" + + - name: 构建应用 run: yarn build - - name: Build Windows installer - run: yarn dist:win + - name: 调试 - 显示构建产物 + if: ${{ inputs.debug }} + run: | + echo "===== 构建目录内容 =====" + dir dist 2>nul || echo "dist 目录不存在" + + - name: 打包 Windows 安装程序 + run: yarn dist:win --${{ matrix.arch }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload artifacts + - name: 调试 - 显示打包产物 + if: ${{ inputs.debug }} + run: | + echo "===== 最终产物 =====" + dir dist\*.exe + + - name: 上传构建产物 uses: actions/upload-artifact@v4 with: - name: windows-builds - path: | - dist/*.exe + name: windows-${{ matrix.arch }} + path: dist/*.exe retention-days: 30 - build-macos: - runs-on: macos-latest + # ==================== macOS 构建 ==================== + 构建-macOS: + strategy: + fail-fast: false + matrix: + include: + - arch: arm64 + os: macos-14 + name: Apple Silicon + - arch: x64 + os: macos-13 + name: Intel + + runs-on: ${{ matrix.os }} + name: 构建 macOS (${{ matrix.name }}) steps: - - name: Checkout code + - name: 检出代码 uses: actions/checkout@v4 - - name: Setup Node.js + - name: 配置 Node.js uses: actions/setup-node@v4 with: - node-version: "24" - cache: "yarn" + node-version: ${{ env.NODE_VERSION }} - - name: Install dependencies + - name: 缓存依赖 + uses: actions/cache@v4 + id: cache + with: + path: node_modules + key: macos-${{ matrix.arch }}-modules-${{ hashFiles('yarn.lock') }} + + - name: 安装依赖 + if: steps.cache.outputs.cache-hit != 'true' run: yarn install --frozen-lockfile - - name: Build application + - name: 调试 - 显示环境信息 + if: ${{ inputs.debug }} + run: | + echo "===== 系统信息 =====" + uname -a + echo "===== 系统架构 =====" + uname -m + echo "===== Node 版本 =====" + node -v + echo "===== Yarn 版本 =====" + yarn -v + + - name: 调试 - 验证 native 模块架构 + if: ${{ inputs.debug }} + run: | + echo "===== sharp 模块架构 =====" + file node_modules/sharp/build/Release/*.node 2>/dev/null || echo "sharp 未安装" + echo "===== 其他 native 模块 =====" + find node_modules -name "*.node" -exec file {} \; 2>/dev/null | head -20 + + - name: 构建应用 run: yarn build - - name: Build macOS installer + - name: 调试 - 显示构建产物 + if: ${{ inputs.debug }} + run: | + echo "===== 构建目录内容 =====" + ls -la dist/ 2>/dev/null || echo "dist 目录不存在" + + - name: 打包 macOS 安装程序 run: yarn dist:mac env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload artifacts + - name: 调试 - 显示打包产物 + if: ${{ inputs.debug }} + run: | + echo "===== 最终产物 =====" + ls -la dist/*.dmg + + - name: 上传构建产物 uses: actions/upload-artifact@v4 with: - name: macos-builds - path: | - dist/*.dmg + name: macos-${{ matrix.arch }} + path: dist/*.dmg retention-days: 30 - build-linux: + # ==================== Linux 构建 ==================== + 构建-Linux: runs-on: ubuntu-latest + name: 构建 Linux (x64) steps: - - name: Checkout code + - name: 检出代码 uses: actions/checkout@v4 - - name: Setup Node.js + - name: 配置 Node.js uses: actions/setup-node@v4 with: - node-version: "24" + node-version: ${{ env.NODE_VERSION }} cache: "yarn" - - name: Install dependencies + - name: 安装依赖 run: yarn install --frozen-lockfile - - name: Build application + - name: 调试 - 显示环境信息 + if: ${{ inputs.debug }} + run: | + echo "===== 系统信息 =====" + uname -a + echo "===== 系统架构 =====" + uname -m + echo "===== Node 版本 =====" + node -v + echo "===== Yarn 版本 =====" + yarn -v + + - name: 调试 - 验证 native 模块架构 + if: ${{ inputs.debug }} + run: | + echo "===== sharp 模块架构 =====" + file node_modules/sharp/build/Release/*.node 2>/dev/null || echo "sharp 未安装" + + - name: 构建应用 run: yarn build - - name: Build Linux installer + - name: 打包 Linux 安装程序 run: yarn dist:linux env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload artifacts + - name: 调试 - 显示打包产物 + if: ${{ inputs.debug }} + run: | + echo "===== 最终产物 =====" + ls -la dist/*.AppImage + + - name: 上传构建产物 uses: actions/upload-artifact@v4 with: - name: linux-builds - path: | - dist/*.AppImage + name: linux-x64 + path: dist/*.AppImage retention-days: 30 - release: - needs: [build-windows, build-macos, build-linux] + # ==================== 发布 ==================== + 发布: + needs: [构建-Windows, 构建-macOS, 构建-Linux] runs-on: ubuntu-latest + name: 发布到 GitHub if: startsWith(github.ref, 'refs/tags/') permissions: contents: write steps: - - name: Download Windows artifacts + - name: 下载所有构建产物 uses: actions/download-artifact@v4 with: - name: windows-builds - path: dist + path: artifacts - - name: Download macOS artifacts - uses: actions/download-artifact@v4 - with: - name: macos-builds - path: dist + - name: 整理文件 + run: | + mkdir -p dist + find artifacts -type f \( -name "*.exe" -o -name "*.dmg" -o -name "*.AppImage" \) -exec mv {} dist/ \; - - name: Download Linux artifacts - uses: actions/download-artifact@v4 - with: - name: linux-builds - path: dist + - name: 显示待发布文件 + run: | + echo "===== 待发布文件列表 =====" + ls -la dist/ - - name: Create Release + - name: 创建 GitHub Release uses: softprops/action-gh-release@v2 with: name: ToonFlow ${{ github.ref_name }} @@ -152,21 +270,22 @@ jobs: | 🍎 macOS | Apple Silicon | `ToonFlow-*-mac-arm64.dmg` | 适用于 M1/M2/M3/M4 芯片的 Mac | | 🍎 macOS | Intel | `ToonFlow-*-mac-x64.dmg` | 适用于 Intel 芯片的 Mac | | 🐧 Linux | x64 | `ToonFlow-*-linux-x64.AppImage` | 适用于大多数 Linux 发行版 | - | 🐧 Linux | ARM64 | `ToonFlow-*-linux-arm64.AppImage` | 适用于 ARM 架构 Linux 设备 | > 💡 **不确定选哪个?** Windows 用户通常选 **x64-setup.exe**;Mac 用户查看「关于本机」:M 系列芯片选 **arm64.dmg**,Intel 选 **x64.dmg**。 ## 🚀 安装说明 - - **Windows**:下载 `.exe` 文件,双击运行安装向导即可。如果运行时出现 DLL 缺失或闪退,请先安装 [Microsoft Visual C++ Redistributable (x64)](https://aka.ms/vs/17/release/vc_redist.x64.exe)。 - - **macOS**:下载 `.dmg` 文件,打开后将 ToonFlow 拖入「应用程序」文件夹。首次打开如遇安全提示,请前往「系统设置 → 隐私与安全性」中允许运行。 - - **Linux**:下载 `.AppImage` 文件,执行 `chmod +x ToonFlow-*.AppImage` 后双击运行。 + - **Windows**:下载 `.exe` 文件,双击运行安装向导即可。如遇 DLL 缺失,请安装 [VC++ 运行库](https://aka.ms/vs/17/release/vc_redist.x64.exe)。 + - **macOS**:下载 `.dmg` 文件,打开后将应用拖入「应用程序」。首次打开如遇安全提示,前往「系统设置 → 隐私与安全性」允许运行。 + - **Linux**:下载 `.AppImage`,执行 `chmod +x ToonFlow-*.AppImage` 后运行。 --- - files: | - dist/*.exe - dist/*.dmg - dist/*.AppImage + files: dist/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: 发布完成 + run: | + echo "✅ 发布完成!" + echo "🔗 Release: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}" \ No newline at end of file diff --git a/src/agents/productionAgent/index.ts b/src/agents/productionAgent/index.ts index bb8d40f..cf5de08 100644 --- a/src/agents/productionAgent/index.ts +++ b/src/agents/productionAgent/index.ts @@ -107,6 +107,7 @@ function createSubAgent(parentCtx: AgentContext) { try { for await (const chunk of textStream) { + await new Promise((resolve) => setTimeout(() => resolve(), 1)); text.append(chunk); fullResponse += chunk; } diff --git a/src/agents/scriptAgent/index.ts b/src/agents/scriptAgent/index.ts index b0cb807..09e5884 100644 --- a/src/agents/scriptAgent/index.ts +++ b/src/agents/scriptAgent/index.ts @@ -109,6 +109,7 @@ function createSubAgent(parentCtx: AgentContext) { try { for await (const chunk of textStream) { + await new Promise((resolve) => setTimeout(() => resolve(), 1)); text.append(chunk); fullResponse += chunk; } diff --git a/src/routes/script/extractAssets.ts b/src/routes/script/extractAssets.ts index 50d7cbc..cb20786 100644 --- a/src/routes/script/extractAssets.ts +++ b/src/routes/script/extractAssets.ts @@ -64,7 +64,6 @@ export default router.post( const { scriptIds, projectId, groupSize = 5 } = req.body; if (!scriptIds.length) return res.status(400).send(error("请先选择剧本")); - console.log("%c Line:67 🍪 scriptIds", "background:#e41a6a", scriptIds); const scripts = await u.db("o_script").whereIn("id", scriptIds); @@ -80,7 +79,6 @@ export default router.post( // 将 scriptIds 按 groupSize(默认5)分组,每组一起发给 AI const scriptGroups = chunkArray(scriptIds as number[], groupSize); - console.log("%c Line:83 🍿 scriptGroups", "background:#f5ce50", scriptGroups); /** 一组剧本提取完成后统一入库并建立关联 */ async function persistGroupResult(result: GroupResult) { @@ -165,8 +163,6 @@ export default router.post( } } } - console.log("%c Line:161 🥕 validScripts", "background:#42b983", validScripts); - if (!validScripts.length) return; const validScriptIds = validScripts.map((v) => v.id); // 修改状态为正在提取中 diff --git a/src/socket/routes/productionAgent.ts b/src/socket/routes/productionAgent.ts index bfd18d6..6a69741 100644 --- a/src/socket/routes/productionAgent.ts +++ b/src/socket/routes/productionAgent.ts @@ -85,6 +85,7 @@ export default (nsp: Namespace) => { let aborted = false; try { for await (const chunk of textStream) { + await new Promise((resolve) => setTimeout(() => resolve(), 1)); syncCurrentMessage(); text.append(chunk); } diff --git a/src/socket/routes/scriptAgent.ts b/src/socket/routes/scriptAgent.ts index 8a0bb72..cc2b5e2 100644 --- a/src/socket/routes/scriptAgent.ts +++ b/src/socket/routes/scriptAgent.ts @@ -74,6 +74,7 @@ export default (nsp: Namespace) => { let aborted = false; try { for await (const chunk of textStream) { + await new Promise((resolve) => setTimeout(() => resolve(), 1)); syncCurrentMessage(); text.append(chunk); } diff --git a/src/types/database.d.ts b/src/types/database.d.ts index dc02b6a..1af96b9 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,22 +1,6 @@ -// @db-hash 19c726e36479d905346c772cfa8007ba +// @db-hash 6fa5017e455bc367c9c902ba574d11b4 //该文件由脚本自动生成,请勿手动修改 -export interface _o_project_old_20260404 { - 'artStyle'?: string | null; - 'createTime'?: number | null; - 'directorManual'?: string | null; - 'id'?: number | null; - 'imageModel'?: string | null; - 'imageQuality'?: string | null; - 'intro'?: string | null; - 'mode'?: string | null; - 'name'?: string | null; - 'projectType'?: string | null; - 'type'?: string | null; - 'userId'?: number | null; - 'videoModel'?: string | null; - 'videoRatio'?: string | null; -} export interface memories { 'content': string; 'createTime': number; @@ -247,7 +231,6 @@ export interface o_videoTrack { } export interface DB { - "_o_project_old_20260404": _o_project_old_20260404; "memories": memories; "o_agentDeploy": o_agentDeploy; "o_agentWorkData": o_agentWorkData; From c5803954c7996aee51abc2249e66d7c26ae925ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ACT=E4=B8=B6=E6=B5=81=E6=98=9F=E9=9B=A8?= <1340145680@qq.com> Date: Sun, 5 Apr 2026 11:15:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?workflows=E6=B7=BB=E5=8A=A0=E8=B0=83?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af9da84..84d7c14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,13 +11,19 @@ on: required: false type: boolean default: false + skipRelease: + description: "跳过发布(仅构建测试)" + required: false + type: boolean + default: false env: NODE_VERSION: "24" + SKIP_RELEASE: ${{ inputs.skipRelease || false }} jobs: # ==================== Windows 构建 ==================== - 构建-Windows: + build-Windows: strategy: fail-fast: false matrix: @@ -88,7 +94,7 @@ jobs: retention-days: 30 # ==================== macOS 构建 ==================== - 构建-macOS: + build-macOS: strategy: fail-fast: false matrix: @@ -171,7 +177,7 @@ jobs: retention-days: 30 # ==================== Linux 构建 ==================== - 构建-Linux: + build-Linux: runs-on: ubuntu-latest name: 构建 Linux (x64) @@ -228,11 +234,11 @@ jobs: retention-days: 30 # ==================== 发布 ==================== - 发布: - needs: [构建-Windows, 构建-macOS, 构建-Linux] + release: + needs: [build-Windows, build-macOS, build-Linux] runs-on: ubuntu-latest name: 发布到 GitHub - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/') && inputs.skipRelease != true permissions: contents: write From f0c3e8b59ac5e068827ae300f5b14766ca197e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ACT=E4=B8=B6=E6=B5=81=E6=98=9F=E9=9B=A8?= <1340145680@qq.com> Date: Sun, 5 Apr 2026 11:20:41 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=AE=8C=E5=96=84workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/debug.yml | 251 ++++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 10 +- 2 files changed, 253 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/debug.yml diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml new file mode 100644 index 0000000..568ae07 --- /dev/null +++ b/.github/workflows/debug.yml @@ -0,0 +1,251 @@ +name: 构建测试 + +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + workflow_dispatch: + inputs: + debug: + description: "启用调试模式" + required: false + type: boolean + default: false + +env: + NODE_VERSION: "24" + +jobs: + # ==================== Windows 构建 ==================== + build-Windows: + strategy: + fail-fast: false + matrix: + arch: [x64, arm64] + + runs-on: windows-latest + name: 构建 Windows (${{ matrix.arch }}) + + steps: + - name: 检出代码 + uses: actions/checkout@v4 + + - name: 配置 Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: 缓存依赖 + uses: actions/cache@v4 + id: cache + with: + path: node_modules + key: windows-${{ matrix.arch }}-modules-${{ hashFiles('yarn.lock') }} + + - name: 安装依赖 + if: steps.cache.outputs.cache-hit != 'true' + run: yarn install --frozen-lockfile + env: + npm_config_arch: ${{ matrix.arch }} + + - name: 调试 - 显示环境信息 + if: ${{ inputs.debug }} + run: | + echo "===== 系统信息 =====" + systeminfo | findstr /B /C:"OS" + echo "===== Node 版本 =====" + node -v + echo "===== Yarn 版本 =====" + yarn -v + echo "===== 目标架构 =====" + echo "${{ matrix.arch }}" + + - name: 构建应用 + run: yarn build + + - name: 调试 - 显示构建产物 + if: ${{ inputs.debug }} + run: | + echo "===== 构建目录内容 =====" + dir dist 2>nul || echo "dist 目录不存在" + + - name: 打包 Windows 安装程序 + run: yarn dist:win --${{ matrix.arch }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: 调试 - 显示打包产物 + if: ${{ inputs.debug }} + run: | + echo "===== 最终产物 =====" + dir dist\*.exe + + - name: 上传构建产物 + uses: actions/upload-artifact@v4 + with: + name: windows-${{ matrix.arch }} + path: dist/*.exe + retention-days: 7 + + # ==================== macOS 构建 ==================== + build-macOS: + strategy: + fail-fast: false + matrix: + include: + - arch: arm64 + os: macos-14 + name: Apple Silicon + - arch: x64 + os: macos-13 + name: Intel + + runs-on: ${{ matrix.os }} + name: 构建 macOS (${{ matrix.name }}) + + steps: + - name: 检出代码 + uses: actions/checkout@v4 + + - name: 配置 Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + + - name: 缓存依赖 + uses: actions/cache@v4 + id: cache + with: + path: node_modules + key: macos-${{ matrix.arch }}-modules-${{ hashFiles('yarn.lock') }} + + - name: 安装依赖 + if: steps.cache.outputs.cache-hit != 'true' + run: yarn install --frozen-lockfile + + - name: 调试 - 显示环境信息 + if: ${{ inputs.debug }} + run: | + echo "===== 系统信息 =====" + uname -a + echo "===== 系统架构 =====" + uname -m + echo "===== Node 版本 =====" + node -v + echo "===== Yarn 版本 =====" + yarn -v + + - name: 调试 - 验证 native 模块架构 + if: ${{ inputs.debug }} + run: | + echo "===== sharp 模块架构 =====" + file node_modules/sharp/build/Release/*.node 2>/dev/null || echo "sharp 未安装" + echo "===== 其他 native 模块 =====" + find node_modules -name "*.node" -exec file {} \; 2>/dev/null | head -20 + + - name: 构建应用 + run: yarn build + + - name: 调试 - 显示构建产物 + if: ${{ inputs.debug }} + run: | + echo "===== 构建目录内容 =====" + ls -la dist/ 2>/dev/null || echo "dist 目录不存在" + + - name: 打包 macOS 安装程序 + run: yarn dist:mac + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: 调试 - 显示打包产物 + if: ${{ inputs.debug }} + run: | + echo "===== 最终产物 =====" + ls -la dist/*.dmg + + - name: 上传构建产物 + uses: actions/upload-artifact@v4 + with: + name: macos-${{ matrix.arch }} + path: dist/*.dmg + retention-days: 7 + + # ==================== Linux 构建 ==================== + build-Linux: + runs-on: ubuntu-latest + name: 构建 Linux (x64) + + steps: + - name: 检出代码 + uses: actions/checkout@v4 + + - name: 配置 Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: "yarn" + + - name: 安装依赖 + run: yarn install --frozen-lockfile + + - name: 调试 - 显示环境信息 + if: ${{ inputs.debug }} + run: | + echo "===== 系统信息 =====" + uname -a + echo "===== 系统架构 =====" + uname -m + echo "===== Node 版本 =====" + node -v + echo "===== Yarn 版本 =====" + yarn -v + + - name: 调试 - 验证 native 模块架构 + if: ${{ inputs.debug }} + run: | + echo "===== sharp 模块架构 =====" + file node_modules/sharp/build/Release/*.node 2>/dev/null || echo "sharp 未安装" + + - name: 构建应用 + run: yarn build + + - name: 打包 Linux 安装程序 + run: yarn dist:linux + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: 调试 - 显示打包产物 + if: ${{ inputs.debug }} + run: | + echo "===== 最终产物 =====" + ls -la dist/*.AppImage + + - name: 上传构建产物 + uses: actions/upload-artifact@v4 + with: + name: linux-x64 + path: dist/*.AppImage + retention-days: 7 + + # ==================== 构建摘要 ==================== + summary: + needs: [build-Windows, build-macOS, build-Linux] + runs-on: ubuntu-latest + name: 构建摘要 + if: always() + + steps: + - name: 输出构建结果 + run: | + echo "===== 构建测试完成 =====" + echo "Windows x64: ${{ needs.build-Windows.result }}" + echo "Windows arm64: ${{ needs.build-Windows.result }}" + echo "macOS Apple Silicon: ${{ needs.build-macOS.result }}" + echo "macOS Intel: ${{ needs.build-macOS.result }}" + echo "Linux x64: ${{ needs.build-Linux.result }}" + echo "" + echo "构建产物将保留 7 天,可在 Actions 页面下载。" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 84d7c14..3eee428 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,15 +11,9 @@ on: required: false type: boolean default: false - skipRelease: - description: "跳过发布(仅构建测试)" - required: false - type: boolean - default: false env: NODE_VERSION: "24" - SKIP_RELEASE: ${{ inputs.skipRelease || false }} jobs: # ==================== Windows 构建 ==================== @@ -238,7 +232,7 @@ jobs: needs: [build-Windows, build-macOS, build-Linux] runs-on: ubuntu-latest name: 发布到 GitHub - if: startsWith(github.ref, 'refs/tags/') && inputs.skipRelease != true + if: startsWith(github.ref, 'refs/tags/') permissions: contents: write @@ -294,4 +288,4 @@ jobs: - name: 发布完成 run: | echo "✅ 发布完成!" - echo "🔗 Release: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}" \ No newline at end of file + echo "🔗 Release: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}"