diff --git a/gui/electron-builder.yml b/gui/electron-builder.yml index f6dd7026c..f001efd12 100644 --- a/gui/electron-builder.yml +++ b/gui/electron-builder.yml @@ -22,18 +22,18 @@ files: - "!node_modules/**/*.{map,ts,tsx,d.ts}" - "!**/.DS_Store" -extraFiles: - - from: "../../server/desktop/build/libs/slimevr.jar" - to: "." - - from: "./69-slimevr-devices.rules" - to: "." - linux: category: Game target: - target: AppImage - # - target: deb - # - target: rpm + - target: deb + - target: rpm + extraFiles: + - from: "../server/desktop/build/libs/slimevr.jar" + to: "." + - from: "./electron/ressources/69-slimevr-devices.rules" + to: "." + icon: "./electron/ressources/icons" deb: depends: @@ -47,6 +47,11 @@ rpm: win: target: - target: portable + icon: "./electron/ressources/icons/icon.ico" mac: target: dmg + extraFiles: + - from: "../server/desktop/build/libs/slimevr.jar" + to: "." + icon: "./electron/ressources/icons/icon.icns" diff --git a/gui/electron/ressources/69-slimevr-devices.rules b/gui/electron/ressources/69-slimevr-devices.rules new file mode 100644 index 000000000..58ee6d1d5 --- /dev/null +++ b/gui/electron/ressources/69-slimevr-devices.rules @@ -0,0 +1,46 @@ +# Copyright 2025 Eiren Rain and SlimeVR Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +## QinHeng +# CH340 +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1A86", ATTRS{idProduct}=="7522", MODE="0660", TAG+="uaccess" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1A86", ATTRS{idProduct}=="7523", MODE="0660", TAG+="uaccess" +# CH341 +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1A86", ATTRS{idProduct}=="5523", MODE="0660", TAG+="uaccess" +# CH343 +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1A86", ATTRS{idProduct}=="55D3", MODE="0660", TAG+="uaccess" +# CH9102x +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1A86", ATTRS{idProduct}=="55D4", MODE="0660", TAG+="uaccess" + +## Silabs +# CP210x +SUBSYSTEMS=="usb", ATTRS{idVendor}=="10C4", ATTRS{idProduct}=="EA60", MODE="0660", TAG+="uaccess" + +## Espressif +# ESP32-S3 / ESP32-C3 / ESP32-C5 / ESP32-C6 / ESP32-C61 / ESP32-H2 / ESP32-P4 +SUBSYSTEMS=="usb", ATTRS{idVendor}=="303A", ATTRS{idProduct}=="1001", MODE="0660", TAG+="uaccess" +# ESP32-S2 +SUBSYSTEMS=="usb", ATTRS{idVendor}=="303A", ATTRS{idProduct}=="0002", MODE="0660", TAG+="uaccess" + +## FTDI +# FT232BM/L/Q, FT245BM/L/Q +# FT232RL/Q, FT245RL/Q +# VNC1L with VDPS Firmware +# VNC2 with FT232Slave +SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0660", TAG+="uaccess" + +## SlimeVR +# smol slime dongle +SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="7690", MODE="0660", TAG+="uaccess" +KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="7690", MODE="0660", TAG+="uaccess" diff --git a/gui/electron/shared.ts b/gui/electron/shared.ts index 346162b21..1364550bd 100644 --- a/gui/electron/shared.ts +++ b/gui/electron/shared.ts @@ -4,7 +4,7 @@ import { SaveDialogOptions, SaveDialogReturnValue, } from 'electron'; -import { DiscordPresence, GHGet, GHReturn, OSStats, ServerStatusEvent } from './preload/interface'; +import { DiscordPresence, GHGet, GHReturn, OSStats } from './preload/interface'; export const IPC_CHANNELS = { SERVER_STATUS: 'server-status',