9remote 2.0.26 → 2.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +47 -47
- package/dist/install.cjs +1 -1
- package/dist/server.cjs +57 -57
- package/dist/ui/assets/index-Casn8c07.css +1798 -0
- package/dist/ui/assets/index-CzK2QQU8.js +18430 -0
- package/dist/ui/index.html +2 -2
- package/package.json +3 -2
- package/dist/ui/assets/index-BZm3GUhX.js +0 -47
- package/dist/ui/assets/index-UgZubVKT.css +0 -32
package/dist/install.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const __importMetaUrl = require('url').pathToFileURL(__filename).href;
|
|
3
|
-
var
|
|
3
|
+
var d=Object.create;var l=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var _=(e,t,s,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of p(t))!h.call(e,o)&&o!==s&&l(e,o,{get:()=>t[o],enumerable:!(c=f(t,o))||c.enumerable});return e};var b=(e,t,s)=>(s=e!=null?d(S(e)):{},_(t||!e||!e.__esModule?l(s,"default",{value:e,enumerable:!0}):s,e));var{spawnSync:R}=require("child_process"),n=require("fs"),u=require("os"),r=require("path"),a="systray2",j="2.1.4",w=r.join(u.homedir(),".9remote"),i=r.join(w,"runtime"),m=r.join(i,"node_modules");function v(){n.existsSync(i)||n.mkdirSync(i,{recursive:!0});let e=r.join(i,"package.json");n.existsSync(e)||n.writeFileSync(e,JSON.stringify({name:"9remote-runtime",version:"1.0.0",private:!0},null,2))}function g(){let e=process.platform==="darwin"?"tray_darwin_release":"tray_linux_release";return n.existsSync(r.join(m,a,"traybin",e))}function y(){if(process.platform==="win32")return;let e=process.platform==="darwin"?"tray_darwin_release":"tray_linux_release",t=r.join(m,a,"traybin",e);try{n.existsSync(t)&&n.chmodSync(t,493)}catch{}}function x(){if(process.platform==="win32")return;v();try{n.rmSync(r.join(u.homedir(),".cache","node-systray"),{recursive:!0,force:!0})}catch{}if(g()){y();return}console.log("\u23F3 Installing system tray (first run)..."),R("npm",["install",`${a}@${j}`,"--no-save"],{cwd:i,stdio:"inherit",timeout:12e4,shell:process.platform==="win32"}).status===0?(y(),console.log("\u2705 System tray ready")):console.warn("\u26A0\uFE0F System tray install failed \u2014 tray disabled")}function k(){try{require.resolve("@hurdlegroup/robotjs"),console.log("\u2705 robotjs installed (Remote desktop available)")}catch{console.log("\u2139\uFE0F robotjs not available (Remote desktop disabled)")}}try{k()}catch{}try{x()}catch{}process.exit(0);
|