This commit is contained in:
pavel 2026-02-25 16:29:36 +01:00
commit 6dc6cecfcc
2 changed files with 15 additions and 3 deletions

View file

@ -11,6 +11,16 @@ jobs:
with: with:
node-version: 24 node-version: 24
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- name: Install packaging deps (Linux + Windows cross-build)
run: sudo apt-get update && sudo apt-get install -y rpm wine64 nsis
- run: npm ci
- run: npm run dist:linux
- run: npm run dist:win
- name: Copy installers into static folder
run: |
mkdir -p static/installers
find static/installers -mindepth 1 -maxdepth 1 -type f -delete
find dist -maxdepth 1 -type f \( -name '*.rpm' -o -name '*.AppImage' -o -name '*.deb' -o -name '*.exe' -o -name '*.msi' \) -exec cp {} static/installers/ \;
- name: Cache Cargo registry - name: Cache Cargo registry
uses: actions/cache@v4 uses: actions/cache@v4
with: with:

View file

@ -8,7 +8,9 @@
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",
"dev": "electron .", "dev": "electron .",
"dist": "electron-builder -l" "dist": "electron-builder",
"dist:linux": "electron-builder --linux",
"dist:win": "electron-builder --win"
}, },
"build": { "build": {
"appId": "me.flegr.chattz", "appId": "me.flegr.chattz",