bundle-desktop-kit.sh bash
40 lines 839 B
Raw
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1 docs: MuseHub-first before ISR #74 — staging solidify NEXT Human 20 hours ago
1 #!/usr/bin/env sh
2 # Bundle the Python engine into the Tauri desktop resources directory (Track Q / Q3).
3 set -eu
4
5 ROOT="$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)"
6 DEST="${ROOT}/desktop/src-tauri/resources/kit"
7
8 rm -rf "${DEST}"
9 mkdir -p "${DEST}"
10
11 copy_tree() {
12 src="${ROOT}/$1"
13 dest="${DEST}/$1"
14 if [ -d "${src}" ]; then
15 mkdir -p "$(dirname "${dest}")"
16 cp -R "${src}" "${dest%/*}/"
17 fi
18 }
19
20 copy_file() {
21 src="${ROOT}/$1"
22 dest="${DEST}/$1"
23 if [ -f "${src}" ]; then
24 mkdir -p "$(dirname "${dest}")"
25 cp "${src}" "${dest}"
26 fi
27 }
28
29 for dir in adapters cli tools policy templates cursor; do
30 copy_tree "${dir}"
31 done
32
33 for file in VERSION pyproject.toml; do
34 copy_file "${file}"
35 done
36
37 chmod +x "${DEST}/cli/ok" 2>/dev/null || true
38 chmod +x "${DEST}/cli/overseer" 2>/dev/null || true
39
40 echo "bundled kit → ${DEST}"
File History 1 commit
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1 docs: MuseHub-first before ISR #74 — staging solidify NEXT Human 20 hours ago