From c3d0d3312ddd8faa0af72ebcc75e5091c84ef10f Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Mon, 27 Oct 2025 21:10:25 +0300 Subject: [PATCH] fix: Update installer to download tar.gz archive - Changed from single binary download to tar.gz archive - Extract all binaries (pezkuwi + workers) - Clean up temporary files after extraction --- scripts/linux/install-validator.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/linux/install-validator.sh b/scripts/linux/install-validator.sh index 7bf2d68..a19dc50 100755 --- a/scripts/linux/install-validator.sh +++ b/scripts/linux/install-validator.sh @@ -78,13 +78,17 @@ download_binaries() { mkdir -p "$INSTALL_DIR/bin" RELEASE_URL="https://github.com/${GITHUB_REPO}/releases/download/${PEZKUWI_VERSION}" + ARCHIVE_NAME="pezkuwi-binaries-linux-x86_64.tar.gz" - wget -q --show-progress -O "$INSTALL_DIR/bin/pezkuwi" "${RELEASE_URL}/pezkuwi" || { + # Download tar.gz archive + wget -q --show-progress -O "/tmp/${ARCHIVE_NAME}" "${RELEASE_URL}/${ARCHIVE_NAME}" || { print_error "Failed to download binaries" print_info "Please check if release exists: ${RELEASE_URL}" exit 1 } - + # Extract binaries + tar -xzf "/tmp/${ARCHIVE_NAME}" -C "$INSTALL_DIR/bin/" + rm "/tmp/${ARCHIVE_NAME}" chmod +x "$INSTALL_DIR/bin/pezkuwi" print_success "Binaries downloaded" }