From 85c90fed50b94d0e7f790558c6eaaaa1993be268 Mon Sep 17 00:00:00 2001 From: coolxitech Date: Sat, 13 Dec 2025 13:18:48 +0800 Subject: [PATCH] =?UTF-8?q?build(workflow):=20=E6=9B=B4=E6=96=B0=E6=89=93?= =?UTF-8?q?=E5=8C=85=E8=B7=AF=E5=BE=84=E4=B8=BA=20docs=20=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 Windows 平台压缩命令,将 dist 替换为 docs - 修改 Linux/macOS 平台打包命令,将 dist/ 替换为 docs/ --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21e4339..e6fa98d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,11 +49,11 @@ jobs: # 3. 打包静态资源与可执行程序 (关键步骤) - name: Package Assets (Windows) if: matrix.os == 'windows-latest' - run: Compress-Archive -Path "${{ matrix.executable }}", "dist" -DestinationPath "${{ matrix.asset_name }}" + run: Compress-Archive -Path "${{ matrix.executable }}", "docs" -DestinationPath "${{ matrix.asset_name }}" - name: Package Assets (Linux/macOS) if: matrix.os != 'windows-latest' - run: tar -czvf ${{ matrix.asset_name }} ${{ matrix.executable }} dist/ + run: tar -czvf ${{ matrix.asset_name }} ${{ matrix.executable }} docs/ # 4. 上传到构建产物 (用于下一步 Release) - name: Upload Artifact