cicy-desktop 2.1.68 → 2.1.69
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 +4 -3
- package/src/sidecar/runtime.js +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cicy-desktop",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.69",
|
|
4
4
|
"description": "CiCy - AI-powered operating system browser",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -143,7 +143,8 @@
|
|
|
143
143
|
"cicy-mihomo-linux-x64": "1.10.4",
|
|
144
144
|
"cicy-mihomo-linux-arm64": "1.10.4",
|
|
145
145
|
"cicy-mihomo-windows-x64": "1.10.4",
|
|
146
|
-
"cicy-mihomo-windows-arm64": "1.10.4"
|
|
146
|
+
"cicy-mihomo-windows-arm64": "1.10.4",
|
|
147
|
+
"cicy-msys2-windows-x64": "1.0.0"
|
|
147
148
|
},
|
|
148
149
|
"devDependencies": {
|
|
149
150
|
"@babel/core": "^7.29.0",
|
|
@@ -154,4 +155,4 @@
|
|
|
154
155
|
"prettier": "^3.8.1",
|
|
155
156
|
"supertest": "^6.3.3"
|
|
156
157
|
}
|
|
157
|
-
}
|
|
158
|
+
}
|
package/src/sidecar/runtime.js
CHANGED
|
@@ -105,9 +105,17 @@ function installPayload(comp, ver, payloadDir) {
|
|
|
105
105
|
fs.rmSync(staging, { recursive: true, force: true });
|
|
106
106
|
fs.mkdirSync(staging, { recursive: true });
|
|
107
107
|
if (c.kind === "dir") {
|
|
108
|
-
|
|
108
|
+
// The 118MB+ MSYS2 tree ships as a single .tar.gz inside the npm package
|
|
109
|
+
// (npm handles one big file far better than 10k tiny ones). Extract it;
|
|
110
|
+
// otherwise the payload is already an unpacked tree → copy.
|
|
111
|
+
const tgz = (() => { try { return fs.readdirSync(payloadDir).find((f) => /\.tar\.gz$/i.test(f)); } catch { return null; } })();
|
|
112
|
+
if (tgz) {
|
|
113
|
+
require("child_process").execFileSync("tar", ["-xzf", path.join(payloadDir, tgz), "-C", staging], { windowsHide: true });
|
|
114
|
+
} else {
|
|
115
|
+
cpDirSync(payloadDir, staging);
|
|
116
|
+
}
|
|
109
117
|
if (!fs.existsSync(path.join(staging, c.check))) {
|
|
110
|
-
// the tree may be nested one level (package/msys64/usr/...)
|
|
118
|
+
// the tree may be nested one level (package/msys64/usr/... or root/usr/...)
|
|
111
119
|
const sub = fs.readdirSync(staging).find((d) =>
|
|
112
120
|
fs.existsSync(path.join(staging, d, c.check)));
|
|
113
121
|
if (!sub) { fs.rmSync(staging, { recursive: true, force: true }); throw new Error(`${comp}: ${c.check} missing in package`); }
|