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:
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