wwwizzarrdry / Electroon

Mini Roon controller with tray icon built with Electron
5 stars 1 forks source link

Linux support? #3

Open dazWiLLiE opened 5 years ago

dazWiLLiE commented 5 years ago

I tried the "npm install" on linux, but it failed:

user@xxxxx  ~/stuff/Electroon  master ●  npm install
npm WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN electroon@1.0.1 No repository field.

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for electron-screen@1.0.3: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    win32
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2018-11-17T12_44_50_977Z-debug.log

14078 warn electroon@1.0.1 No repository field.
14079 verbose stack Error: Unsupported platform for electron-screen@1.0.3: wanted {"name":"electron-screen","version":"1.0.3","description":"Small Module that returns an array with all the monitors connected to the pc with their resol$
14079 verbose stack     at checkPlatform (/usr/lib/node_modules/npm/node_modules/npm-install-checks/index.js:45:14)
14079 verbose stack     at tryCatcher (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
14079 verbose stack     at ret (eval at makeNodePromisifiedEval (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
14079 verbose stack     at readJson.then.catch.then (/usr/lib/node_modules/npm/lib/install/action/refresh-package-json.js:31:12)
14079 verbose stack     at tryCatcher (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
14079 verbose stack     at Promise._settlePromiseFromHandler (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
14079 verbose stack     at Promise._settlePromise (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
14079 verbose stack     at Promise._settlePromise0 (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
14079 verbose stack     at Promise._settlePromises (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
14079 verbose stack     at Promise._fulfill (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:638:18)
14079 verbose stack     at Promise._settlePromise (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:582:21)
14079 verbose stack     at Promise._settlePromise0 (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
14079 verbose stack     at Promise._settlePromises (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
14079 verbose stack     at Promise._fulfill (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:638:18)
14079 verbose stack     at Promise._resolveCallback (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:432:57)
14079 verbose stack     at Promise._settlePromiseFromHandler (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:524:17)
14080 verbose pkgid electron-screen@1.0.3
14081 verbose cwd /home/user/stuff/Electroon
14082 verbose Linux 4.14.74-1.pvops.qubes.x86_64
14083 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
14084 verbose node v11.1.0
14085 verbose npm  v6.4.1
14086 error code EBADPLATFORM
14087 error notsup Unsupported platform for electron-screen@1.0.3: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
14088 error notsup Valid OS:    win32
14088 error notsup Valid Arch:  any
14088 error notsup Actual OS:   linux
14088 error notsup Actual Arch: x64
14089 verbose exit [ 1, true ]

Oh, I see.. you have a thread here:

wwwizzarrdry commented 5 years ago

I'm not sure there are any alternatives to Screen for Linux builds.

Linux continues to be a second class citizen with Electron. When I realized Electron couldn't even support transparency on Linux, I stopped considering the platform all together.