mirror of
https://github.com/kepano/obsidian-skills.git
synced 2026-12-05 10:05:18 -08:00
caf3e98cd2
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.
20 lines
505 B
Bash
Executable File
20 lines
505 B
Bash
Executable File
#!/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"
|