From 6071f2a930554d78bac3543f6f92eb90202121a2 Mon Sep 17 00:00:00 2001 From: Draculabo Date: Tue, 23 Dec 2025 02:00:37 +0800 Subject: [PATCH] fix: rebuild native modules for Electron in CI --- .github/workflows/publish.yaml | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index eb8930b..c683acd 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -37,6 +37,9 @@ jobs: - name: Install dependencies run: npm ci + - name: Rebuild native modules for Electron + run: npx @electron/rebuild + - name: Publish Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 9d82474..8ff03ca 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "@electron-forge/publisher-github": "^7.10.2", "@electron-forge/shared-types": "^7.8.1", "@electron/fuses": "~1.8.0", + "@electron/rebuild": "^3.7.1", "@eslint/compat": "^1.4.1", "@eslint/js": "^9.39.0", "@playwright/test": "^1.56.1",