diff --git a/scripts/release.sh b/scripts/release.sh index ab7c532..949dc29 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -57,6 +57,7 @@ mkdir -p "$STAGING" # Source (excluding dev artifacts) tar -C "$ROOT" \ + --no-xattrs \ --exclude='node_modules' \ --exclude='.git' \ --exclude='dist' \ @@ -67,9 +68,9 @@ tar -C "$ROOT" \ -cf - . | tar -C "$STAGING" -xf - # Pre-built artifacts +mkdir -p "$STAGING/pub" "$STAGING/dist" cp -a pub/client "$STAGING/pub/client" cp -a dist/repos "$STAGING/dist/repos" -mkdir -p "$STAGING/dist" cp dist/toes-linux-arm64 "$STAGING/dist/toes" # Generated templates (so the server doesn't need to generate them) @@ -78,7 +79,7 @@ cp src/lib/templates.data.ts "$STAGING/src/lib/templates.data.ts" # ── Tarball ────────────────────────────────────────────── echo ">> Creating tarball" -tar -C dist -czf "dist/toes-$VERSION.tar.gz" "toes-$VERSION" +tar -C dist --no-xattrs -czf "dist/toes-$VERSION.tar.gz" "toes-$VERSION" rm -rf "$STAGING" SIZE=$(du -h "dist/toes-$VERSION.tar.gz" | cut -f1)