mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-18 22:16:18 -05:00
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.
38 lines
830 B
Bash
Executable File
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
|