@@ -3,19 +3,19 @@ name: Build Desktop Applications
33on :
44 push :
55 tags :
6- - ' v*.*.*'
6+ - " v*.*.*"
77 workflow_dispatch :
88 inputs :
99 publish :
10- description : ' Publish to GitHub Releases'
10+ description : " Publish to GitHub Releases"
1111 required : false
12- default : ' false'
12+ default : " false"
1313
1414jobs :
1515 build :
1616 name : Build ${{ matrix.os }}
1717 runs-on : ${{ matrix.os }}
18-
18+
1919 strategy :
2020 fail-fast : false
2121 matrix :
@@ -26,39 +26,39 @@ jobs:
2626 platform : mac
2727 - os : windows-latest
2828 platform : windows
29-
29+
3030 steps :
3131 - name : Checkout code
3232 uses : actions/checkout@v4
3333 with :
3434 submodules : recursive
35-
35+
3636 - name : Setup Node.js
3737 uses : actions/setup-node@v4
3838 with :
39- node-version : ' 24 '
40- cache : ' npm'
41-
39+ node-version : " 24 "
40+ cache : " npm"
41+
4242 - name : Install dependencies
4343 run : npm ci
44-
44+
4545 - name : Fix app-builder permissions (Linux)
4646 if : runner.os == 'Linux'
4747 run : |
4848 # Fix all app-builder binaries regardless of location
4949 find node_modules -type f -name 'app-builder' -exec chmod +x {} \;
5050 echo "Fixed permissions for app-builder binaries:"
5151 find node_modules -type f -name 'app-builder' -exec ls -la {} \;
52-
52+
5353 - name : Build main application
5454 run : npm run build
55-
55+
5656 - name : Build Electron app (Linux)
5757 if : matrix.platform == 'linux'
5858 run : npm run electron:build:linux
5959 env :
6060 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61-
61+
6262 - name : Build Electron app (macOS)
6363 if : matrix.platform == 'mac'
6464 run : |
9393 # CSC_KEY_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }}
9494 # APPLE_ID: ${{ secrets.APPLE_ID }}
9595 # APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
96-
96+
9797 - name : Build Electron app (Windows)
9898 if : matrix.platform == 'windows'
9999 run : npm run electron:build:win
@@ -102,11 +102,11 @@ jobs:
102102 # For code signing (optional):
103103 # CSC_LINK: ${{ secrets.WIN_CERT }}
104104 # CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_PASSWORD }}
105-
105+
106106 - name : List build artifacts
107107 run : ls -R release/
108108 shell : bash
109-
109+
110110 - name : Upload artifacts
111111 uses : actions/upload-artifact@v4
112112 with :
@@ -116,12 +116,12 @@ jobs:
116116 release/*.zip
117117 release/*.dmg
118118 release/*.AppImage
119- release/*.deb
120- release/*.rpm
121- release/*.tar.gz
119+ release/@liascript/ *.deb
120+ release/@liascript/ *.rpm
121+ release/@liascript/ *.tar.gz
122122 release/*.yml
123123 retention-days : 30
124-
124+
125125 - name : Upload to Release (on tag)
126126 if : startsWith(github.ref, 'refs/tags/')
127127 uses : softprops/action-gh-release@v1
@@ -131,27 +131,27 @@ jobs:
131131 release/*.zip
132132 release/*.dmg
133133 release/*.AppImage
134- release/*.deb
135- release/*.rpm
136- release/*.tar.gz
134+ release/@liascript/ *.deb
135+ release/@liascript/ *.rpm
136+ release/@liascript/ *.tar.gz
137137 release/*.yml
138138 draft : false
139139 prerelease : false
140140 generate_release_notes : true
141141 env :
142142 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
143-
143+
144144 # Summary job
145145 build-summary :
146146 name : Build Summary
147147 needs : build
148148 runs-on : ubuntu-latest
149149 if : always()
150-
150+
151151 steps :
152152 - name : Check build status
153153 run : |
154154 echo "Build completed!"
155155 echo "Linux: ${{ needs.build.result }}"
156156 echo "macOS: ${{ needs.build.result }}"
157- echo "Windows: ${{ needs.build.result }}"
157+ echo "Windows: ${{ needs.build.result }}"
0 commit comments