mirror of
https://github.com/lukaszraczylo/claude-mnemonic.git
synced 2026-10-19 06:18:13 +00:00
fixup! fixup! fixup! chore: update marketplace for v0.11.37
This commit is contained in:
+9
-6
@@ -194,11 +194,14 @@ download_release() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Verify download integrity via checksum
|
# Verify download integrity via checksum
|
||||||
local checksum_url="${download_url}.sha256"
|
local checksums_url="https://github.com/${GITHUB_REPO}/releases/download/${version}/checksums.txt"
|
||||||
info "Verifying download integrity..."
|
info "Verifying download integrity..."
|
||||||
if curl -sSL -o "$tmp_dir/checksum.sha256" "$checksum_url" 2>/dev/null; then
|
if curl -fsSL -o "$tmp_dir/checksums.txt" "$checksums_url" 2>/dev/null; then
|
||||||
local expected_hash actual_hash
|
local expected_hash actual_hash
|
||||||
expected_hash=$(awk '{print $1}' "$tmp_dir/checksum.sha256")
|
expected_hash=$(grep "${archive_name}" "$tmp_dir/checksums.txt" | awk '{print $1}')
|
||||||
|
if [[ -z "$expected_hash" ]]; then
|
||||||
|
warn "Archive ${archive_name} not found in checksums.txt, skipping verification"
|
||||||
|
else
|
||||||
if command -v shasum &> /dev/null; then
|
if command -v shasum &> /dev/null; then
|
||||||
actual_hash=$(shasum -a 256 "$tmp_dir/release.${archive_ext}" | awk '{print $1}')
|
actual_hash=$(shasum -a 256 "$tmp_dir/release.${archive_ext}" | awk '{print $1}')
|
||||||
elif command -v sha256sum &> /dev/null; then
|
elif command -v sha256sum &> /dev/null; then
|
||||||
@@ -213,10 +216,10 @@ download_release() {
|
|||||||
fi
|
fi
|
||||||
success "Checksum verified"
|
success "Checksum verified"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
warn "No checksum file available at $checksum_url, skipping verification"
|
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
warn "No checksum file available, skipping verification"
|
||||||
|
fi
|
||||||
info "Extracting archive..."
|
info "Extracting archive..."
|
||||||
if [[ "$archive_ext" == "zip" ]]; then
|
if [[ "$archive_ext" == "zip" ]]; then
|
||||||
if ! command -v unzip &> /dev/null; then
|
if ! command -v unzip &> /dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user