update files in .github to support arm64

This commit is contained in:
Sam Heinz
2026-05-22 23:43:58 +10:00
parent e82d290c31
commit 5161a74dca
3 changed files with 31 additions and 10 deletions

View File

@@ -79,6 +79,18 @@ body:
validations:
required: true
- type: dropdown
id: host_arm64
attributes:
label: 🧱 Is this Proxmox host running arm64?
description: "Run `dpkg --print-architecture` on your Proxmox host if unsure."
options:
- ""
- "No"
- "Yes"
validations:
required: true
- type: input
id: pve_version
attributes:

View File

@@ -49,18 +49,26 @@ jobs:
return
fi
local url="https://pkgs.alpinelinux.org/package/v${alpine_ver}/main/x86_64/nodejs"
local page
page=$(curl -sf "$url" 2>/dev/null || echo "")
local full_ver=""
if [[ -n "$page" ]]; then
# Parse: "Version | 24.13.0-r1" or similar table row
full_ver=$(echo "$page" | grep -oP 'Version\s*\|\s*\K[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "")
if [[ -z "$full_ver" ]]; then
# Fallback: look for version pattern after "Version"
full_ver=$(echo "$page" | grep -oP '(?<=Version</td><td>)[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "")
local arch_label url_arch url page
for arch_pair in "amd64:x86_64" "arm64:aarch64"; do
arch_label="${arch_pair%%:*}"
url_arch="${arch_pair#*:}"
url="https://pkgs.alpinelinux.org/package/v${alpine_ver}/main/${url_arch}/nodejs"
page=$(curl -sf "$url" 2>/dev/null || echo "")
if [[ -n "$page" ]]; then
# Parse: "Version | 24.13.0-r1" or similar table row.
full_ver=$(echo "$page" | grep -oP 'Version\s*\|\s*\K[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "")
if [[ -z "$full_ver" ]]; then
# Fallback: look for version pattern after "Version".
full_ver=$(echo "$page" | grep -oP '(?<=Version</td><td>)[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "")
fi
fi
fi
if [[ -n "$full_ver" ]]; then
echo "Resolved Alpine ${alpine_ver} nodejs via ${arch_label}"
break
fi
done
local major=""
if [[ -n "$full_ver" ]]; then

View File

@@ -179,6 +179,7 @@ jobs:
if (resolvedType) payload.type = resolvedType;
var resolvedCats = (data.categories || []).map(function(n) { return categoryNameToPbId[categoryIdToName[n]]; }).filter(Boolean);
if (resolvedCats.length) payload.categories = resolvedCats;
if (data.has_arm !== undefined) payload.has_arm = data.has_arm === true || data.has_arm === 'true';
if (data.version !== undefined) payload.version = data.version;
if (data.changelog !== undefined) payload.changelog = data.changelog;
if (data.screenshots !== undefined) payload.screenshots = data.screenshots;