cicy-desktop 2.1.80 → 2.1.82
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.82",
|
|
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",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
//
|
|
9
9
|
// Usage: node scripts/sync-runtime-deps.cjs (writes package.json in place)
|
|
10
10
|
|
|
11
|
-
const {
|
|
11
|
+
const { execSync } = require("child_process");
|
|
12
12
|
const fs = require("fs");
|
|
13
13
|
const path = require("path");
|
|
14
14
|
|
|
@@ -17,8 +17,14 @@ const PLATFORMS = ["darwin-x64", "darwin-arm64", "linux-x64", "linux-arm64", "wi
|
|
|
17
17
|
const COMPONENTS = ["cicy-code", "cicy-mihomo"]; // NOT cicy-msys2 — win drops it
|
|
18
18
|
|
|
19
19
|
function latest(pkg) {
|
|
20
|
+
// Use execSync (runs through a shell) instead of execFileSync: on Windows npm
|
|
21
|
+
// is npm.cmd, and Node refuses to spawn .cmd/.bat without a shell (EINVAL) —
|
|
22
|
+
// execFileSync('npm'|'npm.cmd', …) therefore threw on every call and the whole
|
|
23
|
+
// script aborted with "resolved nothing" even though the registry was fine.
|
|
24
|
+
// cmd.exe (win) / sh (unix) resolve `npm` correctly. pkg/REGISTRY are trusted
|
|
25
|
+
// constants, so the interpolation is safe.
|
|
20
26
|
try {
|
|
21
|
-
return
|
|
27
|
+
return execSync(`npm view ${pkg} version --registry=${REGISTRY}`, { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim() || null;
|
|
22
28
|
} catch {
|
|
23
29
|
return null; // not published for this platform (e.g. cicy-code has no windows-arm64)
|
|
24
30
|
}
|