Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rust/mseries-tailscale/snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ fixtures=${2:-$here/fixtures}
(cd "$here/.." && cargo build -q -p mseries-tailscale)
bin="$(cd "$here/.." && cargo metadata --format-version 1 --no-deps | python3 -c 'import json,sys; print(json.load(sys.stdin)["target_directory"])')/debug/mseries-tailscale"
# Icons come from a private data dir so the snapshot does not depend on what is installed.
data=$(mktemp -d "${XDG_CACHE_HOME:-$HOME/.cache}/tailscale-snapshot.XXXXXX"); trap 'rm -rf "$data"' EXIT
cache=${XDG_CACHE_HOME:-$HOME/.cache}; mkdir -p "$cache" # CI runners have no ~/.cache yet
data=$(mktemp -d "$cache/tailscale-snapshot.XXXXXX"); trap 'rm -rf "$data"' EXIT
for f in "$here"/data/*.svg; do
case $f in *-symbolic.svg) dir=symbolic ;; *) dir=scalable ;; esac
install -Dm644 "$f" "$data/icons/hicolor/$dir/apps/$(basename "$f")"
Expand Down