Updates to scanner with CVE saving and auto update
This commit is contained in:
+10
-1
@@ -21,7 +21,16 @@ APP="$DERIVED/Build/Products/Debug/PHPGuard.app"
|
||||
exit 1
|
||||
}
|
||||
|
||||
"$ROOT/Scripts/install-app-icon.sh" "$APP"
|
||||
# Xcode generates AppIcon.icns from Assets.xcassets.
|
||||
# Verify that the compiled application contains its icon.
|
||||
ICON="$APP/Contents/Resources/AppIcon.icns"
|
||||
|
||||
if [[ ! -s "$ICON" ]]; then
|
||||
echo "ERROR: Compiled PHPGuard application icon missing: $ICON" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "PHPGuard application icon verified."
|
||||
|
||||
echo
|
||||
echo "Build complete: $APP"
|
||||
|
||||
+9
-1
@@ -1 +1,9 @@
|
||||
xcodebuild -list -project PHPGuard.xcodeproj
|
||||
#!/bin/zsh
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
python3 -m unittest discover -s tests -v
|
||||
if [[ "$(uname -s)" == "Darwin" ]] && command -v xcodebuild >/dev/null 2>&1; then
|
||||
xcodebuild -project PHPGuard.xcodeproj -scheme PHPGuard -configuration Debug -derivedDataPath .build CODE_SIGNING_ALLOWED=NO build
|
||||
else
|
||||
echo "SKIP: Xcode build requires macOS/Xcode"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user