Skip to content

Commit f7b5abd

Browse files
committed
fix(build): break out each platform build
1 parent 74461f6 commit f7b5abd

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/build-electron.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,26 @@ jobs:
7373
run: |
7474
npm install
7575
76-
- name: Build Electron app
76+
# Linux build
77+
- name: Build Electron app (Linux)
78+
if: matrix.os == 'ubuntu-latest'
79+
run: |
80+
cd electron
81+
npm run build
82+
83+
# macOS build
84+
- name: Build Electron app (macOS)
85+
if: matrix.os == 'macos-14'
7786
env:
78-
CSC_LINK: ${{ matrix.os == 'macos-14' && secrets.mac_certs || '' }}
79-
CSC_KEY_PASSWORD: ${{ matrix.os == 'macos-14' && secrets.mac_certs_password || '' }}
87+
CSC_LINK: ${{ secrets.mac_certs }}
88+
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
89+
run: |
90+
cd electron
91+
npm run build
92+
93+
# Windows build
94+
- name: Build Electron app (Windows)
95+
if: matrix.os == 'windows-latest'
8096
run: |
8197
cd electron
8298
npm run build

electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,4 @@
169169
"build/**/*"
170170
]
171171
}
172-
}
172+
}

0 commit comments

Comments
 (0)