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:
|
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:
|
||||||
|
|
@ -40,4 +50,4 @@ jobs:
|
||||||
mkdir -p ~/discord/static/uploads
|
mkdir -p ~/discord/static/uploads
|
||||||
find ~/discord/static -mindepth 1 -maxdepth 1 ! -name 'uploads' -exec rm -rf {} +
|
find ~/discord/static -mindepth 1 -maxdepth 1 ! -name 'uploads' -exec rm -rf {} +
|
||||||
cp -r static/* ~/discord/static/
|
cp -r static/* ~/discord/static/
|
||||||
systemctl --user start discord
|
systemctl --user start discord
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
@ -38,4 +40,4 @@
|
||||||
"electron": "^34.5.8",
|
"electron": "^34.5.8",
|
||||||
"electron-builder": "^25.1.8"
|
"electron-builder": "^25.1.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue