skill-atlas-cli 0.1.6 → 0.1.8

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.
Files changed (2) hide show
  1. package/install.sh +19 -0
  2. package/package.json +2 -1
package/install.sh ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ TMP_DIR="$(mktemp -d)"
5
+ trap 'rm -rf "$TMP_DIR"' EXIT
6
+
7
+ INSTALL_ZIP_URL="https://unpkg.com/skill-atlas-cli@0.1.6/install.zip"
8
+ curl -sSL "$INSTALL_ZIP_URL" -o "$TMP_DIR/install.zip"
9
+ unzip -q "$TMP_DIR/install.zip" -d "$TMP_DIR"
10
+
11
+ # 解压后执行 setup.sh 安装脚本
12
+ INSTALLER="$TMP_DIR/setup.sh"
13
+ if [[ ! -f "$INSTALLER" ]]; then
14
+ echo "Error: setup.sh not found after extracting install.zip" >&2
15
+ find "$TMP_DIR" -maxdepth 3 -print >&2
16
+ exit 1
17
+ fi
18
+
19
+ bash "$INSTALLER" "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-atlas-cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "skill-atlas CLI - 虾小宝 SKILL ATLAS 命令行工具",
5
5
  "homepage": "https://skillatlas.cn/",
6
6
  "type": "module",
@@ -27,6 +27,7 @@
27
27
  "package.json",
28
28
  "README.md",
29
29
  "setup.sh",
30
+ "install.sh",
30
31
  "install.zip"
31
32
  ],
32
33
  "keywords": [