← Commit history

Publish 1.1.5

Drew Owens ·905ea07636 · ·parent a776aa6
5 files changed +10−4
adom-molecule
⋯ 1 unchanged line ⋯
install.sh+6−1
@@ -8,13 +8,18 @@ echo "Installed adom-molecule → $DEST"  # Skills: root SKILL.md = the adom-molecule skill; sub-skills under skills/<name>/. # Copy real files (no symlinks), clearing any prior dir or symlink from an old install.-SKILLS_DIR="$HOME/.claude/skills"+# Under sudo, $HOME is /root — resolve the REAL user's home via SUDO_USER so the+# skills land where Claude Code (running as that user) can see them.+TARGET_USER="${SUDO_USER:-$(id -un)}"+TARGET_HOME="$(getent passwd "$TARGET_USER" | cut -d: -f6)"+SKILLS_DIR="$TARGET_HOME/.claude/skills" mkdir -p "$SKILLS_DIR" install_skill() { # <install-name> <source SKILL.md>   [ -f "$2" ] || return 0   rm -rf "$SKILLS_DIR/$1"   mkdir -p "$SKILLS_DIR/$1"   cp "$2" "$SKILLS_DIR/$1/SKILL.md"+  [ -n "${SUDO_USER:-}" ] && chown -R "$TARGET_USER" "$SKILLS_DIR/$1"   echo "Installed skill → $SKILLS_DIR/$1/SKILL.md" } install_skill adom-molecule "$PKG_DIR/SKILL.md"
package.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "adom-molecule",-  "version": "1.1.4",+  "version": "1.1.5",   "type": "app",   "description": "Adom Molecule CLI \u2014 import a wiki molecule into Hydrogen (reuses the published GLB, no re-optimization), plus create/optimize/list/delete from KiCad, Fusion 360, and EasyEDA files.",   "needs_sudo": true,
page.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "adom-molecule",-  "version": "1.1.4",+  "version": "1.1.5",   "type": "app",   "description": "Adom Molecule CLI — import a wiki molecule into Hydrogen (reuses the published GLB, no re-optimization), plus create/optimize/list/delete from KiCad, Fusion 360, and EasyEDA files.",   "needs_sudo": true,
uninstall.sh+2−1
@@ -1,4 +1,5 @@ #!/bin/bash rm -f /usr/local/bin/adom-molecule 2>/dev/null || sudo rm -f /usr/local/bin/adom-molecule-rm -rf "$HOME/.claude/skills/adom-molecule" "$HOME/.claude/skills/adom-molecule-import"+TARGET_HOME="$(getent passwd "${SUDO_USER:-$(id -un)}" | cut -d: -f6)"+rm -rf "$TARGET_HOME/.claude/skills/adom-molecule" "$TARGET_HOME/.claude/skills/adom-molecule-import" echo "Removed adom-molecule (binary + skills)"