Updates to scanner with CVE saving and auto update

This commit is contained in:
Mark Gregory
2026-10-22 13:22:35 +01:00
parent 9afc80ca18
commit be96da88f5
16 changed files with 2900 additions and 86 deletions
+2 -4
View File
@@ -6,10 +6,8 @@ command -v xcodebuild >/dev/null || { echo "Xcode is required" >&2; exit 1; }
command -v hdiutil >/dev/null || { echo "hdiutil missing" >&2; exit 1; }
IDENTITY="${SIGNING_IDENTITY:-$(security find-identity -v -p codesigning | sed -nE 's/.*"(Developer ID Application: [^"]+)".*/\1/p' | head -1)}"
[[ -n "$IDENTITY" ]] || { echo "Developer ID Application signing identity required. Set SIGNING_IDENTITY." >&2; exit 1; }
# Use the existing Apple notarization profile by default.
# Override with NOTARY_PROFILE when required.
PROFILE="${NOTARY_PROFILE:-orion-notary}"
echo "Notarization profile: $PROFILE"
PROFILE="${NOTARY_PROFILE:-}"
[[ -n "$PROFILE" ]] || { echo "Set NOTARY_PROFILE to an existing notarytool keychain profile." >&2; exit 1; }
DERIVED="$ROOT/.build"
xcodebuild -project "$ROOT/PHPGuard.xcodeproj" -scheme PHPGuard -configuration Release -derivedDataPath "$DERIVED" CODE_SIGNING_ALLOWED=NO build
APP="$DERIVED/Build/Products/Release/PHPGuard.app"