From f4d1a2ad04f44232a666d32f7f1da60c14925730 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 15 Mar 2026 21:27:10 -0400 Subject: [PATCH] Fix lbrynet download URL in remote-install.sh Changes: - Fixed download URL: lbrynet-linux.zip (not lbry-sdk-linux.zip) - Added better error handling and progress display - Shows download progress with wget progress bar - Verifies file exists before extraction - Provides clear error messages if download fails - Tested: Download and extraction now work correctly The install script should now successfully download and install lbrynet automatically. --- remote-install.sh | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/remote-install.sh b/remote-install.sh index 968176a..2d1fec8 100755 --- a/remote-install.sh +++ b/remote-install.sh @@ -86,28 +86,38 @@ if ! command -v lbrynet &> /dev/null; then # Download latest lbrynet for Linux LBRY_VERSION="0.113.0" - DOWNLOAD_URL="https://github.com/lbryio/lbry-sdk/releases/download/v${LBRY_VERSION}/lbry-sdk-linux.zip" + DOWNLOAD_URL="https://github.com/lbryio/lbry-sdk/releases/download/v${LBRY_VERSION}/lbrynet-linux.zip" cd ~/.local/bin - if wget -q --show-progress "$DOWNLOAD_URL" 2>&1 | tail -5; then + + # Download with progress + echo "Downloading lbrynet v${LBRY_VERSION}..." + if wget --progress=bar:force "$DOWNLOAD_URL" -O lbrynet-linux.zip 2>&1; then print_status "Downloaded lbrynet" - # Extract - if unzip -q lbry-sdk-linux.zip; then - rm lbry-sdk-linux.zip - chmod +x lbrynet - print_status "Extracted lbrynet" - - # Add to PATH if not already there - if ! echo "$PATH" | grep -q "$HOME/.local/bin"; then - echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc - print_status "Added ~/.local/bin to PATH" - export PATH="$HOME/.local/bin:$PATH" + # Check if file exists and has content + if [ -f "lbrynet-linux.zip" ] && [ -s "lbrynet-linux.zip" ]; then + # Extract + if unzip -q lbrynet-linux.zip; then + rm lbrynet-linux.zip + chmod +x lbrynet + print_status "Extracted lbrynet" + + # Add to PATH if not already there + if ! echo "$PATH" | grep -q "$HOME/.local/bin"; then + echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc + print_status "Added ~/.local/bin to PATH" + export PATH="$HOME/.local/bin:$PATH" + fi + + print_status "LBRY SDK installed successfully!" + print_info "lbrynet installed to: ~/.local/bin/lbrynet" + else + print_error "Failed to extract lbrynet" + rm -f lbrynet-linux.zip fi - - print_status "LBRY SDK installed successfully!" else - print_error "Failed to extract lbrynet" + print_error "Download failed - file not found or empty" fi else print_error "Failed to download lbrynet"