norc-cli 0.4.0 → 0.4.1
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/README.md +2 -0
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,8 @@ brew install norcapp/norc/norc-cli
|
|
|
22
22
|
|
|
23
23
|
Requires Node.js >= 24 (via npm — brew/apt/scoop bundle their own runtime, no system Node needed).
|
|
24
24
|
|
|
25
|
+
To update, use the same channel (`npm install -g norc-cli@latest`, `brew upgrade norc-cli`, ...). brew and scoop restart the background service themselves; apt restarts it for the user who ran `sudo`. After an npm update, or an apt upgrade that ran as root without `sudo` (e.g. unattended-upgrades) or for a service another account owns, run `norc service install` once, as the user who runs the service (not root), so it restarts on the new version.
|
|
26
|
+
|
|
25
27
|
## Setup
|
|
26
28
|
|
|
27
29
|
`norc login` / `norc pair` / `norc bridge` talk to the norc.app project by
|
package/dist/index.js
CHANGED
|
@@ -44401,7 +44401,7 @@ var import_node_os5 = require("node:os");
|
|
|
44401
44401
|
var import_node_path3 = require("node:path");
|
|
44402
44402
|
|
|
44403
44403
|
// src/version.ts
|
|
44404
|
-
var VERSION2 = "0.4.
|
|
44404
|
+
var VERSION2 = "0.4.1";
|
|
44405
44405
|
|
|
44406
44406
|
// src/host-details.ts
|
|
44407
44407
|
var ARCH = { x64: "x86_64", arm64: "arm64", ia32: "x86", arm: "arm" };
|
|
@@ -46346,13 +46346,16 @@ async function installService(deps = defaultServiceDeps(process.execPath)) {
|
|
|
46346
46346
|
await deps.mkdir((0, import_node_path8.join)(deps.home, ".config", "systemd", "user"), { recursive: true });
|
|
46347
46347
|
await deps.writeFile(path, systemdUnit(deps.binaryPath));
|
|
46348
46348
|
await deps.exec("systemctl", ["--user", "daemon-reload"]);
|
|
46349
|
-
await deps.exec("systemctl", ["--user", "enable", "
|
|
46349
|
+
await deps.exec("systemctl", ["--user", "enable", "norc.service"]);
|
|
46350
|
+
await deps.exec("systemctl", ["--user", "restart", "norc.service"]);
|
|
46350
46351
|
return;
|
|
46351
46352
|
}
|
|
46352
46353
|
case "darwin": {
|
|
46353
46354
|
const path = launchdPlistPath(deps.home);
|
|
46354
46355
|
await deps.mkdir((0, import_node_path8.join)(deps.home, "Library", "LaunchAgents"), { recursive: true });
|
|
46355
46356
|
await deps.writeFile(path, launchdPlist(deps.binaryPath));
|
|
46357
|
+
await deps.exec("launchctl", ["unload", path]).catch(() => {
|
|
46358
|
+
});
|
|
46356
46359
|
await deps.exec("launchctl", ["load", "-w", path]);
|
|
46357
46360
|
return;
|
|
46358
46361
|
}
|
|
@@ -46369,6 +46372,8 @@ async function installService(deps = defaultServiceDeps(process.execPath)) {
|
|
|
46369
46372
|
"LIMITED",
|
|
46370
46373
|
"/F"
|
|
46371
46374
|
]);
|
|
46375
|
+
await deps.exec("schtasks", ["/End", "/TN", SCHEDULED_TASK_NAME]).catch(() => {
|
|
46376
|
+
});
|
|
46372
46377
|
await deps.exec("schtasks", ["/Run", "/TN", SCHEDULED_TASK_NAME]);
|
|
46373
46378
|
return;
|
|
46374
46379
|
}
|