Initial commit

This commit is contained in:
Felipe M 2025-09-18 19:56:06 +02:00
commit 1db16227b2
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
31 changed files with 2175 additions and 0 deletions

38
Scripts/build.sh Executable file
View file

@ -0,0 +1,38 @@
#!/bin/bash
# Build script for Menu-Whisper
# This script builds the project using Swift Package Manager
set -e
echo "🔨 Building Menu-Whisper..."
# Clean previous build
echo "🧹 Cleaning previous build..."
swift package clean
# Build in release mode
echo "⚡ Building in release mode..."
swift build -c release
# Run tests
echo "🧪 Running tests..."
swift test
# Check if SwiftFormat is available and run it
if command -v swiftformat >/dev/null 2>&1; then
echo "📝 Checking code formatting..."
swiftformat --lint .
else
echo "⚠️ SwiftFormat not available, skipping format check"
fi
# Check if SwiftLint is available and run it
if command -v swiftlint >/dev/null 2>&1; then
echo "🔍 Running SwiftLint..."
swiftlint
else
echo "⚠️ SwiftLint not available, skipping lint check"
fi
echo "✅ Build completed successfully!"