From b9ccee05547c4fa59dc2dfdc091ead9fcc793781 Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Thu, 29 May 2025 22:02:45 +0100 Subject: [PATCH] fix: correct tarball filename in download URLs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script was looking for pulse-3.12.1.tar.gz but the actual release asset is named pulse-v3.12.1.tar.gz (with 'v' prefix). This caused 404 "Not Found" errors during tarball downloads. Fixed all download URLs to use the correct filename format that matches the actual release asset names created by the release script. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- scripts/install-pulse.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/install-pulse.sh b/scripts/install-pulse.sh index 7361fc9e5..84358c9e4 100755 --- a/scripts/install-pulse.sh +++ b/scripts/install-pulse.sh @@ -323,7 +323,7 @@ download_and_extract_tarball() { return 1 fi - local tarball_url="https://github.com/rcourtman/Pulse/releases/download/$tag/pulse-${tag#v}.tar.gz" + local tarball_url="https://github.com/rcourtman/Pulse/releases/download/$tag/pulse-$tag.tar.gz" local temp_tarball="/tmp/pulse-$tag.tar.gz" local temp_extract_dir="/tmp/pulse-extract-$$" @@ -487,7 +487,7 @@ perform_tarball_update() { if [ ! -f "$PULSE_DIR/src/public/output.css" ]; then print_error "Critical: output.css file is missing after tarball extraction. This indicates a problem with the tarball or extraction process." # Try to re-extract just the CSS file as a fallback - if curl -sL "https://github.com/rcourtman/Pulse/releases/download/$TARGET_TAG/pulse-${TARGET_TAG#v}.tar.gz" | tar -xzf - --to-stdout "pulse-${TARGET_TAG#v}/src/public/output.css" > "$PULSE_DIR/src/public/output.css" 2>/dev/null; then + if curl -sL "https://github.com/rcourtman/Pulse/releases/download/$TARGET_TAG/pulse-$TARGET_TAG.tar.gz" | tar -xzf - --to-stdout "pulse-$TARGET_TAG/src/public/output.css" > "$PULSE_DIR/src/public/output.css" 2>/dev/null; then print_success "CSS file recovered using direct extraction." else print_error "Failed to recover CSS file. Frontend may not display correctly." @@ -495,7 +495,7 @@ perform_tarball_update() { elif [ ! -s "$PULSE_DIR/src/public/output.css" ]; then print_error "Critical: output.css file is empty after tarball extraction." # Try to re-extract just the CSS file as a fallback - if curl -sL "https://github.com/rcourtman/Pulse/releases/download/$TARGET_TAG/pulse-${TARGET_TAG#v}.tar.gz" | tar -xzf - --to-stdout "pulse-${TARGET_TAG#v}/src/public/output.css" > "$PULSE_DIR/src/public/output.css" 2>/dev/null; then + if curl -sL "https://github.com/rcourtman/Pulse/releases/download/$TARGET_TAG/pulse-$TARGET_TAG.tar.gz" | tar -xzf - --to-stdout "pulse-$TARGET_TAG/src/public/output.css" > "$PULSE_DIR/src/public/output.css" 2>/dev/null; then print_success "CSS file recovered using direct extraction." else print_error "Failed to recover CSS file. Frontend may not display correctly." @@ -503,7 +503,7 @@ perform_tarball_update() { elif head -1 "$PULSE_DIR/src/public/output.css" 2>/dev/null | grep -q " "$PULSE_DIR/src/public/output.css" 2>/dev/null; then + if curl -sL "https://github.com/rcourtman/Pulse/releases/download/$TARGET_TAG/pulse-$TARGET_TAG.tar.gz" | tar -xzf - --to-stdout "pulse-$TARGET_TAG/src/public/output.css" > "$PULSE_DIR/src/public/output.css" 2>/dev/null; then # Verify the recovery worked if [ -s "$PULSE_DIR/src/public/output.css" ] && ! head -1 "$PULSE_DIR/src/public/output.css" 2>/dev/null | grep -q " "$PULSE_DIR/src/public/output.css" 2>/dev/null; then + if curl -sL "https://github.com/rcourtman/Pulse/releases/download/$TARGET_TAG/pulse-$TARGET_TAG.tar.gz" | tar -xzf - --to-stdout "pulse-$TARGET_TAG/src/public/output.css" > "$PULSE_DIR/src/public/output.css" 2>/dev/null; then print_success "CSS file recovered using direct extraction." chown "$PULSE_USER":"$PULSE_USER" "$PULSE_DIR/src/public/output.css" else @@ -632,7 +632,7 @@ perform_tarball_install() { elif [ ! -s "$PULSE_DIR/src/public/output.css" ]; then print_error "Critical: output.css file is empty after tarball extraction. Attempting recovery..." # Try to re-extract just the CSS file as a fallback - if curl -sL "https://github.com/rcourtman/Pulse/releases/download/$TARGET_TAG/pulse-${TARGET_TAG#v}.tar.gz" | tar -xzf - --to-stdout "pulse-${TARGET_TAG#v}/src/public/output.css" > "$PULSE_DIR/src/public/output.css" 2>/dev/null; then + if curl -sL "https://github.com/rcourtman/Pulse/releases/download/$TARGET_TAG/pulse-$TARGET_TAG.tar.gz" | tar -xzf - --to-stdout "pulse-$TARGET_TAG/src/public/output.css" > "$PULSE_DIR/src/public/output.css" 2>/dev/null; then print_success "CSS file recovered using direct extraction." chown "$PULSE_USER":"$PULSE_USER" "$PULSE_DIR/src/public/output.css" else @@ -641,7 +641,7 @@ perform_tarball_install() { elif head -1 "$PULSE_DIR/src/public/output.css" 2>/dev/null | grep -q " "$PULSE_DIR/src/public/output.css" 2>/dev/null; then + if curl -sL "https://github.com/rcourtman/Pulse/releases/download/$TARGET_TAG/pulse-$TARGET_TAG.tar.gz" | tar -xzf - --to-stdout "pulse-$TARGET_TAG/src/public/output.css" > "$PULSE_DIR/src/public/output.css" 2>/dev/null; then # Verify the recovery worked if [ -s "$PULSE_DIR/src/public/output.css" ] && ! head -1 "$PULSE_DIR/src/public/output.css" 2>/dev/null | grep -q "