Updates to scanner with CVE saving and auto update

This commit is contained in:
Mark Gregory
2026-10-22 15:11:17 +01:00
parent 1da7234864
commit 2c90bcb365
15 changed files with 2669 additions and 17 deletions
+27 -8
View File
@@ -1,11 +1,30 @@
#!/bin/zsh
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
CONFIG="${CONFIGURATION:-Debug}"
DERIVED="${DERIVED_DATA_PATH:-$ROOT/.build}"
command -v xcodebuild >/dev/null || { echo "Xcode command line tools required" >&2; exit 1; }
xcodebuild -project "$ROOT/PHPGuard.xcodeproj" -scheme PHPGuard -configuration "$CONFIG" -derivedDataPath "$DERIVED" CODE_SIGNING_ALLOWED=NO build
APP="$DERIVED/Build/Products/$CONFIG/PHPGuard.app"
[[ -d "$APP" ]] || { echo "Built application not found: $APP" >&2; exit 1; }
echo "Built: $APP"
if [[ "${LAUNCH_AFTER_BUILD:-1}" == "1" ]]; then open "$APP"; fi
cd "$ROOT"
DERIVED="$ROOT/.build"
xcodebuild \
-project PHPGuard.xcodeproj \
-scheme PHPGuard \
-configuration Debug \
-derivedDataPath "$DERIVED" \
CODE_SIGNING_ALLOWED=NO \
build
APP="$DERIVED/Build/Products/Debug/PHPGuard.app"
[[ -d "$APP" ]] || {
echo "PHPGuard.app not found" >&2
exit 1
}
"$ROOT/Scripts/install-app-icon.sh" "$APP"
echo
echo "Build complete: $APP"
pkill -x PHPGuard 2>/dev/null || true
open "$APP"