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.
This commit is contained in:
suyao
2025-06-15 03:59:27 +08:00
parent dc3e28b414
commit 574975f32d
+5
View File
@@ -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: |