cicy-desktop 2.1.79 → 2.1.81
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cicy-desktop",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.81",
|
|
4
4
|
"description": "CiCy - AI-powered operating system browser",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -133,11 +133,11 @@
|
|
|
133
133
|
},
|
|
134
134
|
"//optionalDependencies": "Runtime Bundle v1 (主人指令): platform binaries delivered by `npm i -g cicy-desktop` itself — npm installs only the current-platform subpackage (os/cpu pinned in each), so first start seeds the runtime store with ZERO network, ZERO npx. Windows packages are named *-windows-* (npm spam filter 403s new names containing win32). cicy-msys2 added once published.",
|
|
135
135
|
"optionalDependencies": {
|
|
136
|
-
"cicy-code-darwin-x64": "2.3.
|
|
137
|
-
"cicy-code-darwin-arm64": "2.3.
|
|
138
|
-
"cicy-code-linux-x64": "2.3.
|
|
139
|
-
"cicy-code-linux-arm64": "2.3.
|
|
140
|
-
"cicy-code-windows-x64": "2.3.
|
|
136
|
+
"cicy-code-darwin-x64": "2.3.1",
|
|
137
|
+
"cicy-code-darwin-arm64": "2.3.1",
|
|
138
|
+
"cicy-code-linux-x64": "2.3.1",
|
|
139
|
+
"cicy-code-linux-arm64": "2.3.1",
|
|
140
|
+
"cicy-code-windows-x64": "2.3.1",
|
|
141
141
|
"cicy-mihomo-darwin-x64": "1.10.4",
|
|
142
142
|
"cicy-mihomo-darwin-arm64": "1.10.4",
|
|
143
143
|
"cicy-mihomo-linux-x64": "1.10.4",
|
|
@@ -13,12 +13,17 @@ const fs = require("fs");
|
|
|
13
13
|
const path = require("path");
|
|
14
14
|
|
|
15
15
|
const REGISTRY = process.env.NPM_REGISTRY || "https://registry.npmjs.org";
|
|
16
|
+
// On Windows `npm` is `npm.cmd`; execFileSync (no shell) can't launch a bare
|
|
17
|
+
// "npm" there → every `npm view` throws ENOENT, gets swallowed by the catch,
|
|
18
|
+
// and the script aborts with "resolved nothing" (registry was fine all along).
|
|
19
|
+
// Resolve the real binary name per-platform.
|
|
20
|
+
const NPM = process.platform === "win32" ? "npm.cmd" : "npm";
|
|
16
21
|
const PLATFORMS = ["darwin-x64", "darwin-arm64", "linux-x64", "linux-arm64", "windows-x64", "windows-arm64"];
|
|
17
22
|
const COMPONENTS = ["cicy-code", "cicy-mihomo"]; // NOT cicy-msys2 — win drops it
|
|
18
23
|
|
|
19
24
|
function latest(pkg) {
|
|
20
25
|
try {
|
|
21
|
-
return execFileSync(
|
|
26
|
+
return execFileSync(NPM, ["view", pkg, "version", `--registry=${REGISTRY}`], { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim() || null;
|
|
22
27
|
} catch {
|
|
23
28
|
return null; // not published for this platform (e.g. cicy-code has no windows-arm64)
|
|
24
29
|
}
|