Skip to content

Commit a7ce380

Browse files
author
BitHighlander
committed
feat: enable cross-platform Windows builds from Linux and add release-3.2.0 branch trigger
1 parent 5b903c4 commit a7ce380

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/build-electron.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- master
77
- release-candidate
88
- release-candidate-*
9+
- release-3.2.0
910
- feature-*
1011
workflow_dispatch:
1112

@@ -89,9 +90,14 @@ jobs:
8990
ls -al ~/private_keys # Debugging line to check the contents of the directory
9091
chmod -R 755 ~/private_keys # Ensure proper permissions
9192
92-
- name: Linux - Build Electron App
93+
- name: Linux - Build Electron App (All Platforms)
9394
if: startsWith(matrix.os, 'ubuntu')
94-
run: yarn run release
95+
run: |
96+
# Build for Linux
97+
yarn run release
98+
# Also build Windows packages from Linux (cross-platform)
99+
cd packages/keepkey-desktop
100+
yarn electron-builder --win --publish=never
95101
env:
96102
NODE_ENV: production
97103
APPLE_ID: ${{ secrets.apple_id }}
@@ -164,6 +170,18 @@ jobs:
164170
packages/keepkey-desktop/dist/*.AppImage.blockmap
165171
if-no-files-found: error
166172

173+
- name: Linux - Upload Windows packages (cross-platform build)
174+
if: startsWith(matrix.os, 'ubuntu')
175+
uses: actions/upload-artifact@v4
176+
with:
177+
name: windows-from-linux-${{ matrix.os }}
178+
path: |
179+
packages/keepkey-desktop/dist/*.exe
180+
packages/keepkey-desktop/dist/*.msi
181+
packages/keepkey-desktop/dist/*.exe.blockmap
182+
packages/keepkey-desktop/dist/*.msi.blockmap
183+
if-no-files-found: warn
184+
167185
- name: Mac - Upload .dmg
168186
if: startsWith(matrix.os, 'macos')
169187
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)