mirror of
https://github.com/pezkuwichain/pezkuwi-validator-v1.0.0.git
synced 2026-04-22 11:17:55 +00:00
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
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user