diff --git a/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift b/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift index 4d84b4da6..04aaa99d8 100644 --- a/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift +++ b/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift @@ -140,11 +140,12 @@ class MenuBarViewModel: ObservableObject { } // Activate the app (required for menu bar apps to show settings) NSApp.activate(ignoringOtherApps: true) - // Open settings window - use the modern selector + // Open settings window - macOS 14+ renamed to showSettingsWindow, older versions use showPreferencesWindow + // Note: Using string-based selector since #selector requires @objc exposure which NSApplication methods don't have if #available(macOS 14, *) { - NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil) - } else if #available(macOS 13, *) { - NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil) + NSApp.sendAction(Selector("showSettingsWindow:"), to: nil, from: nil) + } else { + NSApp.sendAction(Selector("showPreferencesWindow:"), to: nil, from: nil) } } @@ -162,4 +163,3 @@ class MenuBarViewModel: ObservableObject { lastSyncText = text } } -// v0.0.31 - pipeline test diff --git a/features/conversation-assistant/macos/install.sh b/features/conversation-assistant/macos/install.sh index 6ed20a34e..ecea56790 100755 --- a/features/conversation-assistant/macos/install.sh +++ b/features/conversation-assistant/macos/install.sh @@ -89,6 +89,14 @@ build_application() { cd "$SCRIPT_DIR" + # Generate version file from VERSION.json + print_info "Generating version info..." + if [[ -x "./generate-version.sh" ]]; then + ./generate-version.sh + else + print_warning "generate-version.sh not found or not executable, skipping version generation" + fi + # Clean previous builds if [[ -d ".build" ]]; then rm -rf .build