Cleanup the setup for generated packages

This commit is contained in:
Den Delimarsky 🌺
2025-09-20 11:52:29 -07:00
parent 64171ec062
commit aa08257d98
4 changed files with 25 additions and 22 deletions

View File

@@ -25,7 +25,10 @@ fi
echo "Building release packages for $NEW_VERSION"
rm -rf sdd-package-base* sdd-*-package-* spec-kit-template-*-"${NEW_VERSION}".zip || true
# Create and use .genreleases directory for all build artifacts
GENRELEASES_DIR=".genreleases"
mkdir -p "$GENRELEASES_DIR"
rm -rf "$GENRELEASES_DIR"/* || true
rewrite_paths() {
sed -E \
@@ -82,7 +85,7 @@ generate_commands() {
build_variant() {
local agent=$1 script=$2
local base_dir="sdd-${agent}-package-${script}"
local base_dir="$GENRELEASES_DIR/sdd-${agent}-package-${script}"
echo "Building $agent ($script) package..."
mkdir -p "$base_dir"
@@ -162,7 +165,7 @@ build_variant() {
generate_commands codex md "\$ARGUMENTS" "$base_dir/.codex/commands" "$script" ;;
esac
( cd "$base_dir" && zip -r "../spec-kit-template-${agent}-${script}-${NEW_VERSION}.zip" . )
echo "Created spec-kit-template-${agent}-${script}-${NEW_VERSION}.zip"
echo "Created $GENRELEASES_DIR/spec-kit-template-${agent}-${script}-${NEW_VERSION}.zip"
}
# Determine agent list
@@ -212,5 +215,5 @@ for agent in "${AGENT_LIST[@]}"; do
done
done
echo "Archives:"
ls -1 spec-kit-template-*-"${NEW_VERSION}".zip
echo "Archives in $GENRELEASES_DIR:"
ls -1 "$GENRELEASES_DIR"/spec-kit-template-*-"${NEW_VERSION}".zip