From 971dd2c43fc465dc0f377577a5c76ae87be0e7b4 Mon Sep 17 00:00:00 2001 From: Hannah Lindrob Date: Tue, 10 Feb 2026 14:22:39 +0100 Subject: [PATCH] Moved updater to its own package, made everything less bad, added ktor for querying versions --- gradle.properties | 1 + server/desktop/build.gradle.kts | 4 + .../src/main/java/dev/slimevr/desktop/Main.kt | 6 +- .../main/java/dev/slimevr/desktop/Updater.kt | 239 ------------------ .../java/dev/slimevr/desktop/updater/Linux.kt | 53 ++++ .../java/dev/slimevr/desktop/updater/Main.kt | 17 ++ .../dev/slimevr/desktop/updater/Updater.kt | 67 +++++ .../slimevr/desktop/updater/UpdaterUtils.kt | 95 +++++++ .../dev/slimevr/desktop/updater/Windows.kt | 83 ++++++ 9 files changed, 321 insertions(+), 244 deletions(-) delete mode 100644 server/desktop/src/main/java/dev/slimevr/desktop/Updater.kt create mode 100644 server/desktop/src/main/java/dev/slimevr/desktop/updater/Linux.kt create mode 100644 server/desktop/src/main/java/dev/slimevr/desktop/updater/Main.kt create mode 100644 server/desktop/src/main/java/dev/slimevr/desktop/updater/Updater.kt create mode 100644 server/desktop/src/main/java/dev/slimevr/desktop/updater/UpdaterUtils.kt create mode 100644 server/desktop/src/main/java/dev/slimevr/desktop/updater/Windows.kt diff --git a/gradle.properties b/gradle.properties index 5f42b39eb..410a71ee0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,3 +18,4 @@ spotlessVersion=8.0.0 shadowJarVersion=8.3.2 buildconfigVersion=5.5.0 grgitVersion=5.2.2 +ktor_version=3.0.3 diff --git a/server/desktop/build.gradle.kts b/server/desktop/build.gradle.kts index 3cfb1b726..8e14c0efb 100644 --- a/server/desktop/build.gradle.kts +++ b/server/desktop/build.gradle.kts @@ -54,6 +54,8 @@ allprojects { } } +val ktor_version: String by project + dependencies { implementation(project(":server:core")) implementation(project(":solarxr-protocol")) @@ -67,6 +69,8 @@ dependencies { exclude(group = "com.fazecast", module = "android") } implementation("org.hid4java:hid4java:0.8.0") + implementation("io.ktor:ktor-client-core:${ktor_version}") + implementation("io.ktor:ktor-client-cio:${ktor_version}") } tasks.shadowJar { diff --git a/server/desktop/src/main/java/dev/slimevr/desktop/Main.kt b/server/desktop/src/main/java/dev/slimevr/desktop/Main.kt index 73210fc65..5a063c17a 100644 --- a/server/desktop/src/main/java/dev/slimevr/desktop/Main.kt +++ b/server/desktop/src/main/java/dev/slimevr/desktop/Main.kt @@ -15,6 +15,7 @@ import dev.slimevr.desktop.platform.linux.UnixSocketRpcBridge import dev.slimevr.desktop.platform.windows.WindowsNamedPipeBridge import dev.slimevr.desktop.serial.DesktopSerialHandler import dev.slimevr.desktop.tracking.trackers.hid.DesktopHIDManager +import dev.slimevr.desktop.updater.Updater import dev.slimevr.tracking.trackers.Tracker import io.eiren.util.OperatingSystem import io.eiren.util.collections.FastList @@ -47,11 +48,6 @@ fun main(args: Array) { System.setProperty("awt.useSystemAAFontSettings", "on") System.setProperty("swing.aatext", "true") - //Check if first boot - // Run install if first boot - val updater = Updater() - updater.runUpdater() - val parser: CommandLineParser = DefaultParser() val formatter = HelpFormatter() diff --git a/server/desktop/src/main/java/dev/slimevr/desktop/Updater.kt b/server/desktop/src/main/java/dev/slimevr/desktop/Updater.kt deleted file mode 100644 index 053c05e9f..000000000 --- a/server/desktop/src/main/java/dev/slimevr/desktop/Updater.kt +++ /dev/null @@ -1,239 +0,0 @@ -package dev.slimevr.desktop - - -import java.io.BufferedInputStream -import java.io.File -import java.io.FileInputStream -import java.io.FileOutputStream -import java.io.IOException -import java.net.URL -import java.nio.file.Files -import java.nio.file.Paths -import java.nio.file.StandardCopyOption -import java.util.zip.ZipEntry -import java.util.zip.ZipInputStream - - - -class Updater { - - val os = System.getProperty("os.name").lowercase() - - fun runUpdater() { - if (os.contains("linux")) { - println("Running linux updater") - updateLinux() - } - else if (os.contains("windows")) { - println("Running windows updater") - updateWindows() - } - else if (os.contains("darwin")) { - println("I dunno") - } - else { - println("guess I'll die") - } - println("Done Updating") - } - - fun executeShellCommand(vararg command: String): String { - return try { - val process = ProcessBuilder(*command) - .redirectErrorStream(true) - .start() - process.inputStream.bufferedReader().readText().also { - process.waitFor() - } - } catch (e: IOException) { - "Error executing shell command: ${e.message}" - } - } - - fun downloadFile(url: URL, filename: String) { - println("Downloading $filename from $url") - try { - val bufferedInputStream = BufferedInputStream(url.openStream()) - val fileOutputStream = FileOutputStream(WINDOWSSTEAMVRDRIVERNAME) - val dataBuffer = ByteArray(1024) - var bytesRead = bufferedInputStream.read(dataBuffer, 0, 1024) - while (bytesRead != -1) { - fileOutputStream.write(dataBuffer, 0, bytesRead) - bytesRead = bufferedInputStream.read(dataBuffer, 0, 1024) - } - val inputStream = url.openStream() - Files.copy(inputStream, Paths.get(filename), StandardCopyOption.REPLACE_EXISTING) - } catch ( e: IOException) { - println("Error downloading file, ${e.message}") - } - } - //Guard against zip slip - fun newFile(destinationPath: File, zipEntry: ZipEntry): File { - val destFile = File(destinationPath, zipEntry.name) - - val destinationDirPath = destinationPath.getCanonicalPath() - val destinationFilePath = destFile.getCanonicalPath() - - if (!destinationFilePath.startsWith(destinationDirPath + File.separator)) { - throw IOException("Entry is outside of the target dir: ${zipEntry.name}") - } - - return destFile - } - - fun unzip(file: String, destDir: String) { - try { - val zipFile = File(destDir) - val dataBuffer = ByteArray(1024) - val zis = ZipInputStream(FileInputStream(file)) - var zipEntry = zis.nextEntry - - while (zipEntry != null) { - val file = newFile(zipFile, zipEntry) - if (zipEntry.isDirectory) { - if (!file.isDirectory && !file.mkdirs()) { - throw IOException("Failed to create directory: $file") - } else { - val parent = file.parentFile - if (!parent.isDirectory && !parent.mkdirs()) { - throw IOException("Failed to create directory: $parent") - } - } - } else { - val fileOutputStream = FileOutputStream(file) - var len = zis.read(dataBuffer, 0, 1024) - while (len > 0) { - fileOutputStream.write(dataBuffer, 0, len) - len = zis.read(dataBuffer, 0, len) - } - fileOutputStream.close() - } - zipEntry = zis.nextEntry - } - - zis.closeEntry() - zis.close() - } catch (e: Exception) { - println("Error during unzip: ${e.message}") - } - } - - fun updateWindows() { - //First check if everything is already installed. Install it if it isn't - checkForInstalledUsbDriverWindows() - updateWindowsSteamVRDriver() - } - - fun updateLinux() { - updateLinuxSteamVRDriver() - } - - - fun checkForInstalledUsbDriverWindows() { - val installedDriversList = executeShellCommand("powershell.exe", "pnputil /enum-drivers") - val ch341ser = installedDriversList.contains("ch341ser.inf") - val ch343ser = installedDriversList.contains("ch343ser.inf") - val silabser = installedDriversList.contains("silabser.inf") - val path = Paths.get("").toAbsolutePath().toString() - - - if (ch341ser && ch343ser && silabser) { - println("drivers already installed!") - return - } - - println("Cannot find one of the drivers, installing drivers") - val driverinstallOutput = executeShellCommand("$path\\installusbdrivers.bat") - println(driverinstallOutput) - } - - - fun checkForUpdates() { - - } - - fun updateWindowsServer() { - - } - - fun updateWindowsUSBDrivers() { - - } - - fun updateWindowsSteamVRDriver() { - val steamVRLocation = executeShellCommand("powershell.exe", "-Command", "(Get-ItemProperty \'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App 250820\').InstallLocation").trim() - if (!steamVRLocation.contains("SteamVR")) { - println("SteamVR not installed, cannot install SlimeVR Steam driver.") - return; - } - val vrPathRegContents = executeShellCommand("${steamVRLocation}\\bin\\win64\\vrpathreg.exe", "finddriver", "slimevr") - println(vrPathRegContents) - val isDriverRegistered = vrPathRegContents.contains("WINDOWSSTEAMVRDRIVERDIRECTORY") - println(isDriverRegistered) - if (isDriverRegistered) { - println("steamVR driver is already registered. Skipping...") - return - } - println("Installing SteamVR Driver") - println("Downloading SteamVR driver") - downloadFile(URL(WINDOWSSTEAMVRDRIVERURL), WINDOWSSTEAMVRDRIVERNAME) - unzip(WINDOWSSTEAMVRDRIVERNAME, WINDOWSSTEAMVRDRIVERDIRECTORY) - println("Driver downloaded") - println("Registering driver with steamvr") - executeShellCommand( - "${steamVRLocation}\\bin\\win64\\vrpathreg.exe", "adddriver", "${ - Paths.get( - "" - ).toAbsolutePath() - }\\${WINDOWSSTEAMVRDRIVERDIRECTORY}\\slimevr" - ) - } - - fun updateLinuxServer() { - - } - - fun updateUdev() { - - } - - fun updateLinuxSteamVRDriver() { - val vrPathRegContents = executeShellCommand("${System.getProperty("user.home")}/.steam/steam/steamapps/common/SteamVR/bin/vrpathreg.sh") - val isDriverRegistered = vrPathRegContents.contains("LINUXSTEAMVRDRIVERDIRECTORY") - if (!isDriverRegistered) { - println("Downloading driver") - downloadFile(URL(LINUXSTEAMVRDRIVERURL), LINUXSTEAMVRDRIVERNAME) - unzip(LINUXSTEAMVRDRIVERNAME, LINUXSTEAMVRDRIVERDIRECTORY) - println("Driver downloaded") - println("Registering driver with steamvr") - executeShellCommand( - "${System.getProperty("user.home")}/.steam/steam/steamapps/common/SteamVR/bin/vrpathreg.sh adddriver ${ - Paths.get( - "" - ).toAbsolutePath() - }/${LINUXSTEAMVRDRIVERDIRECTORY}/slimevr" - ) - } else { - println("steamVR driver is already registered. Skipping...") - } - } - - companion object { - //Windows URL's - private const val WINDOWSSTEAMVRDRIVERURL = "https://github.com/SlimeVR/SlimeVR-OpenVR-Driver/releases/latest/download/slimevr-openvr-driver-win64.zip" - private const val WINDOWSSTEAMVRDRIVERNAME = "slimevr-openvr-driver-win64.zip" - private const val WINDOWSSTEAMVRDRIVERDIRECTORY = "slimevr-openvr-driver-win64" - private const val WINDOWSFEEDERURL = "https://github.com/SlimeVR/SlimeVR-Feeder-App/releases/latest/download/SlimeVR-Feeder-App-win64.zip" - private const val WINDOWSFEEDERNAME = "SlimeVR-Feeder-App-win64.zip" - - //Linux URL's - private const val LINUXSTEAMVRDRIVERURL = "https://github.com/SlimeVR/SlimeVR-OpenVR-Driver/releases/latest/download/slimevr-openvr-driver-x64-linux.zip" - private const val LINUXSTEAMVRDRIVERNAME = "slimevr-openvr-driver-x64-linux.zip" - private const val LINUXSTEAMVRDRIVERDIRECTORY = "slimevr-openvr-driver-x64-linux" - private const val LINUXFEEDERURL = "https://github.com/SlimeVR/SlimeVR-Feeder-App/releases/latest/download/SlimeVR-Feeder-App-linux64.zip" - private const val LINUXFEEDERNAME = "SlimeVR-Feeder-App-linux64.zip" - private const val LINUXFEEDERDIRECTORY = "SlimeVR-Feeder-App-linux64" - - //MacOS URL's - } -} diff --git a/server/desktop/src/main/java/dev/slimevr/desktop/updater/Linux.kt b/server/desktop/src/main/java/dev/slimevr/desktop/updater/Linux.kt new file mode 100644 index 000000000..9f3d02aa5 --- /dev/null +++ b/server/desktop/src/main/java/dev/slimevr/desktop/updater/Linux.kt @@ -0,0 +1,53 @@ +package dev.slimevr.desktop.updater + +import dev.slimevr.desktop.updater.downloadFile +import dev.slimevr.desktop.updater.executeShellCommand +import dev.slimevr.desktop.updater.unzip +import java.net.URL +import java.nio.file.Paths + +class Linux { + + fun updateLinux() { + updateLinuxSteamVRDriver() + } + + fun updateLinuxSteamVRDriver() { + val vrPathRegContents = executeShellCommand("${System.getProperty("user.home")}/.steam/steam/steamapps/common/SteamVR/bin/vrpathreg.sh") + val isDriverRegistered = vrPathRegContents.contains("LINUXSTEAMVRDRIVERDIRECTORY") + if (!isDriverRegistered) { + println("Downloading driver") + downloadFile(URL(LINUXSTEAMVRDRIVERURL), LINUXSTEAMVRDRIVERNAME) + unzip(LINUXSTEAMVRDRIVERNAME, LINUXSTEAMVRDRIVERDIRECTORY) + println("Driver downloaded") + println("Registering driver with steamvr") + executeShellCommand( + "${System.getProperty("user.home")}/.steam/steam/steamapps/common/SteamVR/bin/vrpathreg.sh adddriver ${ + Paths.get( + "" + ).toAbsolutePath() + }/${LINUXSTEAMVRDRIVERDIRECTORY}/slimevr" + ) + } else { + println("steamVR driver is already registered. Skipping...") + } + } + + fun updateLinuxServer() { + + } + + fun updateUdev() { + + } + + companion object { + //Linux URL's + private const val LINUXSTEAMVRDRIVERURL = "https://github.com/SlimeVR/SlimeVR-OpenVR-Driver/releases/latest/download/slimevr-openvr-driver-x64-linux.zip" + private const val LINUXSTEAMVRDRIVERNAME = "slimevr-openvr-driver-x64-linux.zip" + private const val LINUXSTEAMVRDRIVERDIRECTORY = "slimevr-openvr-driver-x64-linux" + private const val LINUXFEEDERURL = "https://github.com/SlimeVR/SlimeVR-Feeder-App/releases/latest/download/SlimeVR-Feeder-App-linux64.zip" + private const val LINUXFEEDERNAME = "SlimeVR-Feeder-App-linux64.zip" + private const val LINUXFEEDERDIRECTORY = "SlimeVR-Feeder-App-linux64" + } +} diff --git a/server/desktop/src/main/java/dev/slimevr/desktop/updater/Main.kt b/server/desktop/src/main/java/dev/slimevr/desktop/updater/Main.kt new file mode 100644 index 000000000..de6e01e15 --- /dev/null +++ b/server/desktop/src/main/java/dev/slimevr/desktop/updater/Main.kt @@ -0,0 +1,17 @@ +package dev.slimevr.desktop.updater + +import dev.slimevr.desktop.GIT_CLEAN +import dev.slimevr.desktop.GIT_COMMIT_HASH +import dev.slimevr.desktop.GIT_VERSION_TAG +import kotlin.text.ifEmpty + +val VERSION = + (GIT_VERSION_TAG.ifEmpty { GIT_COMMIT_HASH }) + + if (GIT_CLEAN) "" else "-dirty" + +suspend fun main(args: Array) { + + println("Running updater") + val updater = Updater() + updater.runUpdater() +} diff --git a/server/desktop/src/main/java/dev/slimevr/desktop/updater/Updater.kt b/server/desktop/src/main/java/dev/slimevr/desktop/updater/Updater.kt new file mode 100644 index 000000000..cc2ffb3cc --- /dev/null +++ b/server/desktop/src/main/java/dev/slimevr/desktop/updater/Updater.kt @@ -0,0 +1,67 @@ +package dev.slimevr.desktop.updater + +import java.io.BufferedInputStream +import java.io.BufferedReader +import java.io.File +import java.io.FileInputStream +import java.io.FileOutputStream +import java.io.IOException +import java.io.InputStreamReader +import java.net.HttpURLConnection +import java.net.URL +import java.nio.file.Files +import java.nio.file.Paths +import java.nio.file.StandardCopyOption +import java.util.zip.ZipEntry +import java.util.zip.ZipInputStream +import io.ktor.client.* +import io.ktor.client.engine.cio.* +import io.ktor.client.request.* +import io.ktor.client.statement.* + + +class Updater { + + val os = System.getProperty("os.name").lowercase() + + suspend fun runUpdater() { + + val latestVersion: Int = queryLatestVersion() + val currentVersion = VERSION + + + //Compare versions + + if (os.contains("linux")) { + println("Running linux updater") + val linuxUpdater = Linux() + linuxUpdater.updateLinux() + } + else if (os.contains("windows")) { + println("Running windows updater") + val windowsUpdater = Windows() + windowsUpdater.updateWindows() + + } + else if (os.contains("darwin")) { + println("I dunno") + } + else { + println("guess I'll die") + } + println("Done Updating") + } + + + + suspend fun queryLatestVersion(): Int { + val client = HttpClient(CIO) + val response: HttpResponse = client.get("https://api.github.com/repos/slimevr/slimevr-server/releases/latest") + println(response) + client.close() + return 0 + } + + + +} diff --git a/server/desktop/src/main/java/dev/slimevr/desktop/updater/UpdaterUtils.kt b/server/desktop/src/main/java/dev/slimevr/desktop/updater/UpdaterUtils.kt new file mode 100644 index 000000000..9f50f8885 --- /dev/null +++ b/server/desktop/src/main/java/dev/slimevr/desktop/updater/UpdaterUtils.kt @@ -0,0 +1,95 @@ +package dev.slimevr.desktop.updater + +import java.io.BufferedInputStream +import java.io.File +import java.io.FileInputStream +import java.io.FileOutputStream +import java.io.IOException +import java.net.URL +import java.nio.file.Files +import java.nio.file.Paths +import java.nio.file.StandardCopyOption +import java.util.zip.ZipEntry +import java.util.zip.ZipInputStream + + +fun executeShellCommand(vararg command: String): String { + return try { + val process = ProcessBuilder(*command) + .redirectErrorStream(true) + .start() + process.inputStream.bufferedReader().readText().also { + process.waitFor() + } + } catch (e: IOException) { + "Error executing shell command: ${e.message}" + } +} + +fun downloadFile(url: URL, filename: String) { + println("Downloading $filename from $url") + try { + val bufferedInputStream = BufferedInputStream(url.openStream()) + val fileOutputStream = FileOutputStream(filename) + val dataBuffer = ByteArray(1024) + var bytesRead = bufferedInputStream.read(dataBuffer, 0, 1024) + while (bytesRead != -1) { + fileOutputStream.write(dataBuffer, 0, bytesRead) + bytesRead = bufferedInputStream.read(dataBuffer, 0, 1024) + } + val inputStream = url.openStream() + Files.copy(inputStream, Paths.get(filename), StandardCopyOption.REPLACE_EXISTING) + } catch ( e: IOException) { + println("Error downloading file, ${e.message}") + } +} +//Guard against zip slip +fun newFile(destinationPath: File, zipEntry: ZipEntry): File { + val destFile = File(destinationPath, zipEntry.name) + + val destinationDirPath = destinationPath.getCanonicalPath() + val destinationFilePath = destFile.getCanonicalPath() + + if (!destinationFilePath.startsWith(destinationDirPath + File.separator)) { + throw IOException("Entry is outside of the target dir: ${zipEntry.name}") + } + + return destFile +} + +fun unzip(file: String, destDir: String) { + try { + val zipFile = File(destDir) + val dataBuffer = ByteArray(1024) + val zis = ZipInputStream(FileInputStream(file)) + var zipEntry = zis.nextEntry + + while (zipEntry != null) { + val file = newFile(zipFile, zipEntry) + if (zipEntry.isDirectory) { + if (!file.isDirectory && !file.mkdirs()) { + throw IOException("Failed to create directory: $file") + } else { + val parent = file.parentFile + if (!parent.isDirectory && !parent.mkdirs()) { + throw IOException("Failed to create directory: $parent") + } + } + } else { + val fileOutputStream = FileOutputStream(file) + var len = zis.read(dataBuffer, 0, 1024) + while (len > 0) { + fileOutputStream.write(dataBuffer, 0, len) + len = zis.read(dataBuffer, 0, len) + } + fileOutputStream.close() + } + zipEntry = zis.nextEntry + } + + zis.closeEntry() + zis.close() + } catch (e: Exception) { + println("Error during unzip: ${e.message}") + } +} diff --git a/server/desktop/src/main/java/dev/slimevr/desktop/updater/Windows.kt b/server/desktop/src/main/java/dev/slimevr/desktop/updater/Windows.kt new file mode 100644 index 000000000..7f9427305 --- /dev/null +++ b/server/desktop/src/main/java/dev/slimevr/desktop/updater/Windows.kt @@ -0,0 +1,83 @@ +package dev.slimevr.desktop.updater + +import dev.slimevr.desktop.updater.downloadFile +import dev.slimevr.desktop.updater.executeShellCommand +import dev.slimevr.desktop.updater.unzip +import java.net.URL +import java.nio.file.Paths + +class Windows { + + + fun updateWindows() { + //First check if everything is already installed. Install it if it isn't + checkForInstalledUsbDriverWindows() + updateWindowsGui() + updateWindowsServer() + updateWindowsSteamVRDriver() + } + + fun checkForInstalledUsbDriverWindows() { + val installedDriversList = + executeShellCommand("powershell.exe", "pnputil /enum-drivers") + val ch341ser = installedDriversList.contains("ch341ser.inf") + val ch343ser = installedDriversList.contains("ch343ser.inf") + val silabser = installedDriversList.contains("silabser.inf") + val path = Paths.get("").toAbsolutePath().toString() + + + if (ch341ser && ch343ser && silabser) { + println("drivers already installed!") + return + } + + println("Cannot find one of the drivers, installing drivers") + val driverinstallOutput = executeShellCommand("$path\\installusbdrivers.bat") + println(driverinstallOutput) + } + + fun updateWindowsSteamVRDriver() { + val steamVRLocation = executeShellCommand("powershell.exe", "-Command", "(Get-ItemProperty \'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App 250820\').InstallLocation").trim() + if (!steamVRLocation.contains("SteamVR")) { + println("SteamVR not installed, cannot install SlimeVR Steam driver.") + return; + } + val vrPathRegContents = executeShellCommand("${steamVRLocation}\\bin\\win64\\vrpathreg.exe", "finddriver", "slimevr") + println(vrPathRegContents) + val isDriverRegistered = vrPathRegContents.contains("WINDOWSSTEAMVRDRIVERDIRECTORY") + println(isDriverRegistered) + if (isDriverRegistered) { + println("steamVR driver is already registered. Skipping...") + return + } + println("Installing SteamVR Driver") + println("Downloading SteamVR driver") + downloadFile(URL(WINDOWSSTEAMVRDRIVERURL), WINDOWSSTEAMVRDRIVERNAME) + unzip(WINDOWSSTEAMVRDRIVERNAME, WINDOWSSTEAMVRDRIVERDIRECTORY) + println("Driver downloaded") + println("Registering driver with steamvr") + executeShellCommand( + "${steamVRLocation}\\bin\\win64\\vrpathreg.exe", "adddriver", "${ + Paths.get( + "" + ).toAbsolutePath() + }\\${WINDOWSSTEAMVRDRIVERDIRECTORY}\\slimevr" + ) + } + + fun updateWindowsServer() { + + } + + fun updateWindowsGui() { + + } + + companion object { + private const val WINDOWSSTEAMVRDRIVERURL = "https://github.com/SlimeVR/SlimeVR-OpenVR-Driver/releases/latest/download/slimevr-openvr-driver-win64.zip" + private const val WINDOWSSTEAMVRDRIVERNAME = "slimevr-openvr-driver-win64.zip" + private const val WINDOWSSTEAMVRDRIVERDIRECTORY = "slimevr-openvr-driver-win64" + private const val WINDOWSFEEDERURL = "https://github.com/SlimeVR/SlimeVR-Feeder-App/releases/latest/download/SlimeVR-Feeder-App-win64.zip" + private const val WINDOWSFEEDERNAME = "SlimeVR-Feeder-App-win64.zip" + } +}