Files
Kevin Yue 888dc93643 refactor: align GP profile and packaging flow
Main changes:

- Refactor connect/auth flows around a single OS profile and host identity model, including gateway fallback and cookie-on-stdin handling.

- Align request parameters, HIP host-id propagation, SAML webview user-agent behavior, and portal default-browser handling with observed official client behavior.

- Add opt-in cookie cache support and Microsoft Defender HIP reporting while keeping host-id validation explicit.

- Add BSD build, packaging, release artifact, and provenance support with FreeBSD/OpenBSD path and dependency cleanup.

- Update NixOS install documentation and dependency compatibility fixes.
2026-06-19 21:23:29 +08:00

38 lines
830 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
shopt -s nullglob
SELECTION=${1:-}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
ARTIFACT_DIR=${2:-"$PROJECT_DIR/.build/artifacts"}
if [ -z "$SELECTION" ]; then
echo "Usage: ./scripts/release-assets.sh <snapshot|tag|all|release-tag> [artifact-dir]" >&2
exit 1
fi
if [[ "$SELECTION" == *"snapshot"* ]]; then
SELECTION=snapshot
elif [ "$SELECTION" != "all" ]; then
SELECTION=tag
fi
case "$SELECTION" in
snapshot|all)
printf '%s\n' "$ARTIFACT_DIR"/artifact-*/*
;;
tag)
printf '%s\n' \
"$ARTIFACT_DIR"/artifact-source*/* \
"$ARTIFACT_DIR"/artifact-gpgui-*/* \
"$ARTIFACT_DIR"/artifact-bsd-*/*
;;
*)
echo "Unknown release asset selection: $SELECTION" >&2
exit 1
;;
esac