agent-Specialization/scripts/zip_agents.sh
2025-12-16 23:16:11 +08:00

19 lines
474 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
set -euo pipefail
# 将项目目录压缩为 zip排除 Git 元数据。
SRC="/Users/jojo/Desktop/agents/正在修复中/agents"
DEST="/Users/jojo/Desktop/agents/正在修复中/agents.zip"
cd "$(dirname "$SRC")"
dir_name="$(basename "$SRC")"
# 确保目标文件被覆盖而不是追加
rm -f "$DEST"
zip -r "$DEST" "$dir_name" \
-x "$dir_name/.git/*" "$dir_name/.git" "$dir_name/.gitignore" "$dir_name/.gitmodules"
echo "打包完成: $DEST"