Complete Phase 4: Comprehensive preferences, localization, and UX polish
- Rename application from MenuWhisper to Tell me with new domain com.fmartingr.tellme - Implement comprehensive preferences window with 6 tabs (General, Models, Text Insertion, Interface, Advanced, Permissions) - Add full English/Spanish localization for all UI elements - Create functional onboarding flow with model download capability - Implement preview dialog for transcription editing - Add settings export/import functionality - Fix HUD content display issues and add comprehensive permission checking - Enhance build scripts and app bundle creation for proper localization support
This commit is contained in:
parent
7ba5895406
commit
54c3b65d4a
25 changed files with 3086 additions and 235 deletions
|
|
@ -6,9 +6,11 @@ set -e
|
|||
|
||||
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
BUILD_DIR="$PROJECT_DIR/.build"
|
||||
DEV_APP_DIR="$BUILD_DIR/MenuWhisper-Dev.app"
|
||||
DEV_APP_DIR="$BUILD_DIR/TellMe-Dev.app"
|
||||
|
||||
echo "🔨 Building MenuWhisper for development..."
|
||||
echo "🔨 Building Tell me for development..."
|
||||
|
||||
defaults delete com.fmartingr.tellme hasShownPermissionOnboarding 2>/dev/null || echo "Onboarding status reset for new domain"
|
||||
|
||||
# Clean previous dev build
|
||||
rm -rf "$DEV_APP_DIR"
|
||||
|
|
@ -21,7 +23,7 @@ mkdir -p "$DEV_APP_DIR/Contents/MacOS"
|
|||
mkdir -p "$DEV_APP_DIR/Contents/Resources"
|
||||
|
||||
# Copy executable
|
||||
cp "$BUILD_DIR/arm64-apple-macosx/debug/MenuWhisper" "$DEV_APP_DIR/Contents/MacOS/MenuWhisper"
|
||||
cp "$BUILD_DIR/arm64-apple-macosx/debug/TellMe" "$DEV_APP_DIR/Contents/MacOS/TellMe"
|
||||
|
||||
# Create Info.plist
|
||||
cat > "$DEV_APP_DIR/Contents/Info.plist" << EOF
|
||||
|
|
@ -30,11 +32,11 @@ cat > "$DEV_APP_DIR/Contents/Info.plist" << EOF
|
|||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>MenuWhisper</string>
|
||||
<string>TellMe</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.menuwhisper.dev</string>
|
||||
<string>com.fmartingr.tellme</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>MenuWhisper Dev</string>
|
||||
<string>TellMe Dev</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
|
@ -46,14 +48,20 @@ cat > "$DEV_APP_DIR/Contents/Info.plist" << EOF
|
|||
<key>LSUIElement</key>
|
||||
<true/>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>MenuWhisper needs microphone access to capture speech for transcription.</string>
|
||||
<string>Tell me needs microphone access to capture speech for transcription.</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOF
|
||||
|
||||
# Copy resources if they exist
|
||||
if [ -d "$PROJECT_DIR/Sources/App/Resources" ]; then
|
||||
cp -r "$PROJECT_DIR/Sources/App/Resources/"* "$DEV_APP_DIR/Contents/Resources/" 2>/dev/null || true
|
||||
# Copy non-localization resources
|
||||
find "$PROJECT_DIR/Sources/App/Resources" -maxdepth 1 -type f -exec cp {} "$DEV_APP_DIR/Contents/Resources/" \;
|
||||
|
||||
# Copy localization files to correct location (directly in Resources, not in Localizations subfolder)
|
||||
if [ -d "$PROJECT_DIR/Sources/App/Resources/Localizations" ]; then
|
||||
cp -r "$PROJECT_DIR/Sources/App/Resources/Localizations/"*.lproj "$DEV_APP_DIR/Contents/Resources/" 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "✅ Development app bundle created at: $DEV_APP_DIR"
|
||||
|
|
@ -61,6 +69,6 @@ echo ""
|
|||
echo "To run with proper permissions:"
|
||||
echo "1. open '$DEV_APP_DIR'"
|
||||
echo "2. Grant permissions in System Settings"
|
||||
echo "3. Or run: '$DEV_APP_DIR/Contents/MacOS/MenuWhisper'"
|
||||
echo "3. Or run: '$DEV_APP_DIR/Contents/MacOS/TellMe'"
|
||||
echo ""
|
||||
echo "The app bundle makes it easier to grant permissions in System Settings."
|
||||
echo "The app bundle makes it easier to grant permissions in System Settings."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue