ancoder-skill-cli 0.13.38-beta.10 → 0.13.38-beta.12
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 +467 -467
- package/bin/skill-cli.js +52 -52
- package/bin/targets/skill-cli-darwin-arm64 +0 -0
- package/bin/targets/skill-cli-darwin-x64 +0 -0
- package/bin/targets/skill-cli-linux-arm64 +0 -0
- package/bin/targets/skill-cli-linux-x64 +0 -0
- package/bin/targets/skill-cli-win32-x64.exe +0 -0
- package/package.json +54 -54
- package/scripts/check-bin.js +176 -176
- package/scripts/install.ps1 +150 -150
- package/scripts/make-install-bundle.js +180 -180
- package/scripts/postinstall.js +36 -36
package/scripts/postinstall.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
const fs = require('fs');
|
|
5
|
-
const path = require('path');
|
|
6
|
-
|
|
7
|
-
const platform = process.platform;
|
|
8
|
-
const arch = process.arch;
|
|
9
|
-
const isWindows = platform === 'win32';
|
|
10
|
-
|
|
11
|
-
const assetNames = {
|
|
12
|
-
'darwin-arm64': 'skill-cli-darwin-arm64',
|
|
13
|
-
'darwin-x64': 'skill-cli-darwin-x64',
|
|
14
|
-
'linux-arm64': 'skill-cli-linux-arm64',
|
|
15
|
-
'linux-x64': 'skill-cli-linux-x64',
|
|
16
|
-
'win32-x64': 'skill-cli-win32-x64.exe',
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const key = `${platform}-${arch}`;
|
|
20
|
-
const bundledName = assetNames[key];
|
|
21
|
-
const bundledPath = bundledName ? path.join(__dirname, '..', 'bin', 'targets', bundledName) : null;
|
|
22
|
-
|
|
23
|
-
if (!bundledName || !bundledPath || !fs.existsSync(bundledPath)) {
|
|
24
|
-
console.warn(`skill-cli: bundled binary missing for ${key}`);
|
|
25
|
-
process.exit(0);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (!isWindows) {
|
|
29
|
-
try {
|
|
30
|
-
fs.chmodSync(bundledPath, 0o755);
|
|
31
|
-
} catch (_) {
|
|
32
|
-
// ignore chmod failures
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
console.log(`skill-cli: bundled binary ready for ${key}`);
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
7
|
+
const platform = process.platform;
|
|
8
|
+
const arch = process.arch;
|
|
9
|
+
const isWindows = platform === 'win32';
|
|
10
|
+
|
|
11
|
+
const assetNames = {
|
|
12
|
+
'darwin-arm64': 'skill-cli-darwin-arm64',
|
|
13
|
+
'darwin-x64': 'skill-cli-darwin-x64',
|
|
14
|
+
'linux-arm64': 'skill-cli-linux-arm64',
|
|
15
|
+
'linux-x64': 'skill-cli-linux-x64',
|
|
16
|
+
'win32-x64': 'skill-cli-win32-x64.exe',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const key = `${platform}-${arch}`;
|
|
20
|
+
const bundledName = assetNames[key];
|
|
21
|
+
const bundledPath = bundledName ? path.join(__dirname, '..', 'bin', 'targets', bundledName) : null;
|
|
22
|
+
|
|
23
|
+
if (!bundledName || !bundledPath || !fs.existsSync(bundledPath)) {
|
|
24
|
+
console.warn(`skill-cli: bundled binary missing for ${key}`);
|
|
25
|
+
process.exit(0);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (!isWindows) {
|
|
29
|
+
try {
|
|
30
|
+
fs.chmodSync(bundledPath, 0o755);
|
|
31
|
+
} catch (_) {
|
|
32
|
+
// ignore chmod failures
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
console.log(`skill-cli: bundled binary ready for ${key}`);
|