mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-06 06:15:51 +00:00
fixed upload to only run on release workflow, debug macos build on runer
This commit is contained in:
@@ -166,11 +166,17 @@ sed -i '' 's/^[[:space:]]*git pull/# git pull/' "$OSX_DIR/frankenphp/build-stati
|
||||
sed -i '' 's/-framework CoreFoundation -framework SystemConfiguration/& -framework CoreServices/' "$OSX_DIR/frankenphp/build-static.sh"
|
||||
|
||||
# ── work around 403 on GH macOS runners ────────────────────────────────────────
|
||||
log "Patching curl to use a browser-like User-Agent (to avoid 403s)…"
|
||||
curl() {
|
||||
command curl -sSL -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Safari/605.1.15" "$@"
|
||||
}
|
||||
export -f curl
|
||||
log "Installing curl-wrapper to avoid 403s…"
|
||||
mkdir -p "$HOME/bin"
|
||||
cat << 'EOF' >"$HOME/bin/curl"
|
||||
#!/usr/bin/env bash
|
||||
# wrap system curl and force a browser UA
|
||||
exec /usr/bin/curl -fsSL -A \
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 \
|
||||
(KHTML, like Gecko) Version/15.6 Safari/605.1.15" "$@"
|
||||
EOF
|
||||
chmod +x "$HOME/bin/curl"
|
||||
export PATH="$HOME/bin:$PATH"
|
||||
|
||||
# Build the binary
|
||||
log "⚙️ Running FrankenPHP build-static.sh..."
|
||||
|
||||
Reference in New Issue
Block a user