Skip to content

Commit d1b8207

Browse files
danishfareedclaude
andcommitted
fix: CI — add explicit electron-rebuild step and DEBUG output for builder
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 063b47e commit d1b8207

File tree

3 files changed

+933
-356
lines changed

3 files changed

+933
-356
lines changed

.github/workflows/build-desktop.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
node-version: 20
3737
cache: npm
3838

39-
- name: Install Python setuptools (native module builds)
39+
- name: Install Python setuptools (macOS)
4040
if: runner.os == 'macOS'
4141
run: pip3 install setuptools --break-system-packages || pip3 install setuptools || true
4242

@@ -58,12 +58,12 @@ jobs:
5858
- name: Compile Electron TypeScript
5959
run: npm run electron:compile
6060

61-
- name: List standalone output
62-
run: node -e "const fs=require('fs');const p=require('path');const d=p.join('.next','standalone');console.log(fs.existsSync(d)?'standalone exists':'NO standalone');if(fs.existsSync(d)){const f=fs.readdirSync(d);console.log('Files:',f.slice(0,20).join(', '));console.log('server.js exists:',fs.existsSync(p.join(d,'server.js')))}"
61+
- name: Rebuild better-sqlite3 for Electron
62+
run: npx @electron/rebuild -f -w better-sqlite3
6363

6464
- name: Build Electron app (macOS)
6565
if: matrix.platform == 'mac'
66-
run: npx electron-builder --mac --publish always
66+
run: DEBUG=electron-builder npx electron-builder --mac --publish always
6767
env:
6868
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6969

0 commit comments

Comments
 (0)