Compare commits

...
Author SHA1 Message Date
loucass003 95daec6814 Pass server jar properly 2026-03-12 02:26:13 +01:00
lucas lelievre 43b104fcc3 Electron build fix round 2 (#1783) 2026-03-12 02:11:42 +01:00
loucass003 a33d6b1c1a Set better folder for electron storage 2026-03-11 20:45:37 +01:00
loucass003 cf67b9306b Remove electron test from ci 2026-03-11 19:23:56 +01:00
lucas lelievre 238c86ee98 Electron CI fixes (#1780) 2026-03-11 19:12:47 +01:00
4 changed files with 19 additions and 7 deletions

No files matched your search

+7 -5
View File
@@ -86,7 +86,9 @@ jobs:
uses: actions/upload-artifact@v6
with:
name: server-jar
path: server/desktop/build/libs/slimevr.jar
path: |
server/desktop/build/libs/slimevr.jar
server/core/resources
build-gui-frontend:
name: Build GUI Assets
@@ -138,7 +140,7 @@ jobs:
uses: actions/download-artifact@v6
with:
name: server-jar
path: server/desktop/build/libs/
path: server
- name: Download GUI Dist
uses: actions/download-artifact@v6
with:
@@ -158,7 +160,6 @@ jobs:
pnpm i
pnpm exec electron-builder --${{ matrix.platform }} \
${{ matrix.platform == 'macos' && '--universal' || '' }} \
${{ matrix.platform == 'windows' && '-c.win.target=zip' || '' }} \
--publish never
- name: Collect and Rename Artifacts
shell: bash
@@ -169,7 +170,7 @@ jobs:
if [ "${{ matrix.platform }}" == "windows" ]; then
[[ "${{ matrix.os }}" == *"arm"* ]] && SUFFIX="win-aarch64" || SUFFIX="win64"
cp "$SRC_DIR"/win/*.exe "$DEST_DIR/SlimeVR-$SUFFIX.zip"
cp "$SRC_DIR"/win/*.zip "$DEST_DIR/SlimeVR-$SUFFIX.zip"
elif [ "${{ matrix.platform }}" == "linux" ]; then
for f in "$SRC_DIR"/linux/*; do
@@ -246,6 +247,7 @@ jobs:
uses: actions/download-artifact@v6
with:
name: server-jar
path: server
- name: Download GUI Dist
uses: actions/download-artifact@v6
with:
@@ -257,5 +259,5 @@ jobs:
generate_release_notes: true
files: |
release-out/*
slimevr.jar
server/desktop/build/libs/slimevr.jar
slimevr-gui-dist.tar.gz
+1 -1
View File
@@ -23,7 +23,7 @@
xorg.libxshmfence libusb1 udev libxcrypt-legacy
rpm fpm
wine
wineWow64Packages.stable
zlib squashfsTools fakeroot libarchive icu
nodejs_22 pnpm pkg-config python3 gcc gnumake binutils git
pkgs.nodePackages.node-gyp-build
+7 -1
View File
@@ -51,8 +51,14 @@ rpm:
win:
artifactName: "${productName}-${os}-${arch}.${ext}"
target: [target: portable]
target: zip
icon: "./electron/resources/icons/icon.ico"
extraFiles:
- from: "../server/desktop/build/libs/slimevr.jar"
to: "."
- from: "../server/core/resources"
to: "."
filter: ["**/*"]
mac:
target: dmg
+4
View File
@@ -36,6 +36,10 @@ import { ServerStatusEvent } from 'electron/preload/interface';
import { mkdir } from 'node:fs/promises';
import { MenuItem } from 'electron/main';
app.setPath('userData', getGuiDataFolder())
app.setPath('sessionData', join(getGuiDataFolder(), 'electron'))
// Register custom protocol to handle asset paths with leading slashes
protocol.registerSchemesAsPrivileged([
{