feat: Update 2 files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 44s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m13s

This commit is contained in:
j842
2025-08-17 22:00:04 +12:00
parent d5bbd16b16
commit e1c002568a
2 changed files with 46 additions and 57 deletions

View File

@@ -40,20 +40,9 @@ trap 'rm -rf "${TEMP_DIR}"' EXIT
curl -L -o "${SOS}" "https://getbin.xyz/sos"
chmod +x "${SOS}"
# Create metadata file with version information
METADATA_FILE="${TEMP_DIR}/metadata.json"
cat > "${METADATA_FILE}" <<EOF
{
"version": "${VERSION}",
"architecture": "${ARCH}",
"project": "${PROJECT}"
}
EOF
# upload arch-specific binary with metadata
# The sos tool should support --metadata flag or similar for version info
"${SOS}" upload "getbin.xyz" "${SCRIPT_DIR}/output/${PROJECT}" "${PROJECT}:latest-${ARCH}" \
--metadata "version=${VERSION}"
# Upload arch-specific binary
# sos will automatically run "dropshell version" and store it in metadata
"${SOS}" upload "getbin.xyz" "${SCRIPT_DIR}/output/${PROJECT}" "${PROJECT}:latest-${ARCH}"
# Also upload with version-specific tag for direct version access
"${SOS}" upload "getbin.xyz" "${SCRIPT_DIR}/output/${PROJECT}" "${PROJECT}:${VERSION}-${ARCH}"