Initial commit
This commit is contained in:
commit
1db16227b2
31 changed files with 2175 additions and 0 deletions
38
Scripts/build.sh
Executable file
38
Scripts/build.sh
Executable 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!"
|
||||
35
Scripts/notarize.sh
Executable file
35
Scripts/notarize.sh
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Notarization script for Menu-Whisper
|
||||
# This is a placeholder script that will be completed in Phase 5
|
||||
|
||||
set -e
|
||||
|
||||
echo "🍎 Menu-Whisper Notarization Script"
|
||||
echo "📋 This script will handle code signing and notarization for distribution"
|
||||
echo ""
|
||||
echo "⚠️ This is a placeholder script - implementation pending Phase 5"
|
||||
echo ""
|
||||
echo "📝 Steps that will be implemented:"
|
||||
echo " 1. Code signing with Developer ID"
|
||||
echo " 2. Creating .app bundle"
|
||||
echo " 3. Notarization with Apple"
|
||||
echo " 4. Stapling notarization ticket"
|
||||
echo " 5. Creating .dmg for distribution"
|
||||
echo ""
|
||||
echo "🔧 Usage (when implemented):"
|
||||
echo " ./Scripts/notarize.sh [--developer-id YOUR_TEAM_ID]"
|
||||
echo ""
|
||||
|
||||
# Placeholder for future implementation
|
||||
# TODO: Implement in Phase 5
|
||||
# - Set up code signing identity
|
||||
# - Configure entitlements
|
||||
# - Build .app bundle
|
||||
# - Submit for notarization
|
||||
# - Wait for approval
|
||||
# - Staple ticket
|
||||
# - Create DMG
|
||||
|
||||
echo "❌ Not implemented yet - use in Phase 5"
|
||||
exit 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue