@@ -3,13 +3,13 @@ name: Build and Release Electron App
33on :
44 push :
55 tags :
6- - ' v*.*.*' # Triggers on version tags like v1.0.0
7- workflow_dispatch : # Allows manual triggering
6+ - " v*.*.*" # Triggers on version tags like v1.0.0
7+ workflow_dispatch : # Allows manual triggering
88 inputs :
99 version :
10- description : ' Version to release (e.g., v1.0.0)'
10+ description : " Version to release (e.g., v1.0.0)"
1111 required : true
12- default : ' v0.1.0'
12+ default : " v0.1.0"
1313
1414jobs :
1515 build-and-release :
@@ -36,31 +36,29 @@ jobs:
3636 - name : Setup Node.js
3737 uses : actions/setup-node@v4
3838 with :
39- node-version : ' 20 '
40- cache : ' npm'
41- cache-dependency-path : app/ package-lock.json
39+ node-version : " 20 "
40+ cache : " npm"
41+ cache-dependency-path : package-lock.json
4242
4343 - name : Install dependencies
44- working-directory : ./app
45- run : npm ci
44+ # Use npm install instead of npm ci to correctly resolve platform-specific
45+ # optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries)
46+ run : npm install
4647
4748 - name : Build Electron App (macOS)
4849 if : matrix.os == 'macos-latest'
49- working-directory : ./app
5050 env :
5151 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5252 run : npm run build:electron -- --mac --x64 --arm64
5353
5454 - name : Build Electron App (Windows)
5555 if : matrix.os == 'windows-latest'
56- working-directory : ./app
5756 env :
5857 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5958 run : npm run build:electron -- --win --x64
6059
6160 - name : Build Electron App (Linux)
6261 if : matrix.os == 'ubuntu-latest'
63- working-directory : ./app
6462 env :
6563 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6664 run : npm run build:electron -- --linux --x64
@@ -70,12 +68,12 @@ jobs:
7068 with :
7169 tag_name : ${{ github.event.inputs.version || github.ref_name }}
7270 files : |
73- app/dist/*.exe
74- app/dist/*.dmg
75- app/dist/*.AppImage
76- app/dist/*.zip
77- app/dist/*.deb
78- app/dist/*.rpm
71+ apps/ app/dist/*.exe
72+ apps/ app/dist/*.dmg
73+ apps/ app/dist/*.AppImage
74+ apps/ app/dist/*.zip
75+ apps/ app/dist/*.deb
76+ apps/ app/dist/*.rpm
7977 draft : false
8078 prerelease : false
8179 env :
0 commit comments