mirror of
https://github.com/fleetbase/fleetbase.git
synced 2025-12-19 14:18:57 +00:00
make osx build script gh runner friendly
This commit is contained in:
@@ -113,7 +113,7 @@ log "Exporting build environment variables..."
|
||||
export PHP_VERSION=8.2
|
||||
export PHP_EXTENSIONS="pdo_mysql,gd,bcmath,redis,intl,zip,gmp,apcu,opcache,imagick,sockets,pcntl,geos,iconv,mbstring,fileinfo,ctype,tokenizer,simplexml,dom,filter,session"
|
||||
export PHP_EXTENSION_LIBS="libgeos,libzip,bzip2,libxml2,openssl,zlib"
|
||||
export SPC_REL_TYPE=source
|
||||
export SPC_REL_TYPE=binary # use binary on osx build instead of `source`
|
||||
export NO_COMPRESS=1
|
||||
export SPC_OPT_BUILD_ARGS="--debug"
|
||||
export CMAKE_OSX_ARCHITECTURES=arm64
|
||||
@@ -165,19 +165,6 @@ sed -i '' 's/^[[:space:]]*git pull/# git pull/' "$OSX_DIR/frankenphp/build-stati
|
||||
# Patch add CoreServices framework for Caddy build on OSX
|
||||
sed -i '' 's/-framework CoreFoundation -framework SystemConfiguration/& -framework CoreServices/' "$OSX_DIR/frankenphp/build-static.sh"
|
||||
|
||||
# ── work around 403 on GH macOS runners ────────────────────────────────────────
|
||||
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..."
|
||||
EMBED=dist/app ./build-static.sh
|
||||
|
||||
Reference in New Issue
Block a user