mirror of
https://github.com/kepano/obsidian-skills.git
synced 2026-12-05 10:05:18 -08:00
Plugin: Add a Gemini CLI extension built as a release archive
Gemini CLI only reads skills from a root skills/ folder, and a symlink there breaks because it copies the clone with fs.cp, which points the link at a temp folder it then deletes. The manifest lives in plugins/obsidian/ instead, and a workflow attaches an archive with real copies of the skills to each published release, where Gemini installs from.
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
out="${1:-dist/obsidian-gemini.tar.gz}"
|
||||
plugin="plugins/obsidian"
|
||||
|
||||
stage="$(mktemp -d)"
|
||||
trap 'rm -rf "$stage"' EXIT
|
||||
|
||||
cp "$plugin/gemini-extension.json" "$plugin/LICENSE" "$stage/"
|
||||
# Gemini copies an installed extension with fs.cp, which breaks symlinks, so the archive needs real files.
|
||||
cp -RL "$plugin/skills" "$stage/skills"
|
||||
|
||||
mkdir -p "$(dirname "$out")"
|
||||
tar -czf "$out" -C "$stage" gemini-extension.json LICENSE skills
|
||||
|
||||
echo "Wrote $out"
|
||||
Reference in New Issue
Block a user