pretty sure one could use the value of process.platform do determine the proper readFileSync line of code to use based on OS, but I havenβt messed with it.
Edit:
I actually just forked the repo and implemented it, just submitted a pull request with Windows support added in.
Oh wow I like that dropdown, as someone who uses multiple Zones at my desk (Speakers and Headphones) that is super handy.
It seems to throw an error when starting up:
> roon-steelseries-tray@1.0.0 start
> electron-forge start
β Checking your system
β Locating Application
β Preparing native dependencies
β Launching Application
App threw an error during load
TypeError: Cannot read properties of undefined (reading 'hide')
at Object.<anonymous> (E:\roon-steelseries-nowplaying-tray-main\app.js:3:10)
at Module._compile (node:internal/modules/cjs/loader:1116:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at loadApplicationPackage (E:\roon-steelseries-nowplaying-tray-main\node_modules\electron\dist\resources\default_app.asar\main.js:110:16)
at Object.<anonymous> (E:\roon-steelseries-nowplaying-tray-main\node_modules\electron\dist\resources\default_app.asar\main.js:222:9)
at Module._compile (node:internal/modules/cjs/loader:1116:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)