Updates to scanner with CVE saving and auto update

This commit is contained in:
Mark Gregory
2026-10-22 13:10:07 +01:00
parent 7aad3222d3
commit 9afc80ca18
2 changed files with 40 additions and 2 deletions
+4 -2
View File
@@ -6,8 +6,10 @@ 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; }
PROFILE="${NOTARY_PROFILE:-}"
[[ -n "$PROFILE" ]] || { echo "Set NOTARY_PROFILE to an existing notarytool keychain profile." >&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"
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"