From 574975f32d7c5178bfbf3c27d01092e17166f75e Mon Sep 17 00:00:00 2001 From: suyao Date: Sun, 15 Jun 2025 03:59:27 +0800 Subject: [PATCH] chore: add canvas rebuild step for Windows in release workflow - Introduced a new step to rebuild the canvas module for Windows to ensure compatibility during the build process. - This step is conditionally executed based on the operating system in the workflow. --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c4a7f1de..46133e767 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,6 +112,11 @@ jobs: NODE_OPTIONS: --max-old-space-size=8192 MAIN_VITE_MINERU_API_KEY: ${{ vars.MAIN_VITE_MINERU_API_KEY }} + - name: Rebuild canvas for Windows + if: matrix.os == 'windows-latest' + run: | + cd node_modules/canvas && node-gyp rebuild && cd ../.. + - name: Build Windows if: matrix.os == 'windows-latest' run: |