yep
This commit is contained in:
parent
63d8aa9fe3
commit
6dc6cecfcc
2 changed files with 15 additions and 3 deletions
|
|
@ -11,6 +11,16 @@ jobs:
|
|||
with:
|
||||
node-version: 24
|
||||
- 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
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
|
@ -40,4 +50,4 @@ jobs:
|
|||
mkdir -p ~/discord/static/uploads
|
||||
find ~/discord/static -mindepth 1 -maxdepth 1 ! -name 'uploads' -exec rm -rf {} +
|
||||
cp -r static/* ~/discord/static/
|
||||
systemctl --user start discord
|
||||
systemctl --user start discord
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@
|
|||
"scripts": {
|
||||
"start": "electron .",
|
||||
"dev": "electron .",
|
||||
"dist": "electron-builder -l"
|
||||
"dist": "electron-builder",
|
||||
"dist:linux": "electron-builder --linux",
|
||||
"dist:win": "electron-builder --win"
|
||||
},
|
||||
"build": {
|
||||
"appId": "me.flegr.chattz",
|
||||
|
|
@ -38,4 +40,4 @@
|
|||
"electron": "^34.5.8",
|
||||
"electron-builder": "^25.1.8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue