Oficina Calls in Finder, the Dock and the home screen; Calls inside
Human
Prompt
4. Names: Finder/Dock/Spotlight/home-screen "Oficina Calls" (.app file name and display name); plain "Calls" inside the app (CFBundleName, menus, About, window titles). Check the iOS home-screen label in the simulator (screenshot).
From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.
Summary
The Mac bundle is build/Oficina Calls.app with CFBundleDisplayName "Oficina Calls" and CFBundleName "Calls"; the iPhone app and its broadcast extension display as "Oficina Calls". SwiftUI titles the app menu's About, Hide, Quit and Help items with the display name (checked with a probe app: "Quit Oficina Probe"), so PlainNameCommands replaces those four with the same actions and shortcuts under "Calls". The window title, the iPhone navigation title and the About panel (CFBundleName) already say Calls.
Agent notes
iOS CFBundleName stays CallsPhone: GENERATE_INFOPLIST_FILE writes $(PRODUCT_NAME) over an info.properties CFBundleName, and renaming the product would rename the test module; iOS shows only the display name. bundle-mac.py deletes a stale build/Calls.app from before the rename. Simulator home screen checked: "Oficina Calls" fits untruncated on an iPhone 18 Pro.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 files changed,
+55
−9
internal/callstest/native_browser_test.go+1 −1native/README.md+2 −2native/apple/Sources/CallsMac/CallsMac.swift+31 −0native/ios/project.yml+7 −2native/scripts/build-mac.sh+2 −2native/scripts/bundle-mac.py+12 −2
diff --git a/internal/callstest/native_browser_test.go b/internal/callstest/native_browser_test.go| index 1378647..92f0ee3 100644 |
| --- a/internal/callstest/native_browser_test.go |
| +++ b/internal/callstest/native_browser_test.go |
| @@ -211,7 +211,7 @@ func assertNativeQualityReports(t *testing.T, rig *browserRig) { |
| // unsigned, so inbound UDP reaches it only as a reply to its own outbound |
| // on the same address pair — which two such binaries achieve only when |
| // their first checks happen to cross in the right order. Chromium is |
| -// signed, so the browser gates never meet it, and a Developer ID Calls.app |
| +// signed, so the browser gates never meet it, and a Developer ID Oficina Calls.app |
| // would not either. Not proved: allowing the binary through the firewall |
| // needs an administrator, and was not done. |
| func TestNativeMacScreenShare(t *testing.T) { |
diff --git a/native/README.md b/native/README.md| index 8c57272..f08be21 100644 |
| --- a/native/README.md |
| +++ b/native/README.md |
| @@ -8,7 +8,7 @@ Requires macOS 14+, Xcode, Go 1.26 and network access for pinned dependencies. |
| ```sh |
| make native-mac |
| -open native/build/Calls.app |
| +open "native/build/Oficina Calls.app" |
| ``` |
| Signed out, the home screen names the Calls server — `calls.oficina.works` |
| @@ -744,7 +744,7 @@ shapes, more queries, and the kill switch (`CALLS_QUALITY_REPORTS=off`). |
| platform capture/UI portions are separate from the Go protocol implementation. |
| - `native/apple/Sources/CallsMac`: SwiftUI app and system-browser authentication host. |
| - `native/apple/Sources/CallsInterop`: a separate synthetic-media test executable; |
| - it is not bundled with Calls.app. |
| + it is not bundled with Oficina Calls.app. |
| Go Mobile's cgo requirement is isolated in `native/go.mod` and the native build |
| script. The existing server continues to build with `CGO_ENABLED=0`. WebRTC is |
diff --git a/native/apple/Sources/CallsMac/CallsMac.swift b/native/apple/Sources/CallsMac/CallsMac.swift| index d6265b9..fa4a4a6 100644 |
| --- a/native/apple/Sources/CallsMac/CallsMac.swift |
| +++ b/native/apple/Sources/CallsMac/CallsMac.swift |
| @@ -31,6 +31,7 @@ import LiveKitWebRTC |
| .defaultSize(width: 1000, height: 760) |
| .commands { |
| CommandGroup(replacing: .newItem) {} |
| + PlainNameCommands() |
| NativeUpdateCommands(updater: updater) |
| CommandMenu("Call") { CallMenuItems(model: model) } |
| } |
| @@ -108,6 +109,36 @@ final class CallsAppDelegate: NSObject, NSApplicationDelegate { |
| } |
| } |
| +/// The application menu's own items, under the name the app has inside its |
| +/// windows. Finder, the Dock and Spotlight say "Oficina Calls" (the bundle's |
| +/// file name and CFBundleDisplayName), but SwiftUI builds About, Hide, Quit |
| +/// and Help from CFBundleDisplayName too, which would put "Quit Oficina |
| +/// Calls" in a menu headed by the plain name. These are the same actions |
| +/// AppKit's own items take, with the same shortcuts: Quit still goes |
| +/// through applicationShouldTerminate, so a call is left first. |
| +struct PlainNameCommands: Commands { |
| + static let name = "Calls" |
| + |
| + var body: some Commands { |
| + CommandGroup(replacing: .appInfo) { |
| + // The standard panel names the app by CFBundleName, which is "Calls". |
| + Button("About \(Self.name)") { NSApp.orderFrontStandardAboutPanel(nil) } |
| + } |
| + CommandGroup(replacing: .appVisibility) { |
| + Button("Hide \(Self.name)") { NSApp.hide(nil) }.keyboardShortcut("h") |
| + Button("Hide Others") { NSApp.hideOtherApplications(nil) } |
| + .keyboardShortcut("h", modifiers: [.command, .option]) |
| + Button("Show All") { NSApp.unhideAllApplications(nil) } |
| + } |
| + CommandGroup(replacing: .appTermination) { |
| + Button("Quit \(Self.name)") { NSApp.terminate(nil) }.keyboardShortcut("q") |
| + } |
| + CommandGroup(replacing: .help) { |
| + Button("\(Self.name) Help") { NSApp.showHelp(nil) }.keyboardShortcut("?") |
| + } |
| + } |
| +} |
| + |
| /// The Call menu. Mute is here so that its shortcut can be found, and so |
| /// that there is one when Space belongs to a text field or a button. Copy |
| /// Invite Link puts the meeting's link on the clipboard without the share |
diff --git a/native/ios/project.yml b/native/ios/project.yml| index 57c2623..4eaea5f 100644 |
| --- a/native/ios/project.yml |
| +++ b/native/ios/project.yml |
| @@ -57,7 +57,11 @@ targets: |
| PRODUCT_BUNDLE_IDENTIFIER: works.oficina.calls |
| TARGETED_DEVICE_FAMILY: '1,2' |
| GENERATE_INFOPLIST_FILE: YES |
| - INFOPLIST_KEY_CFBundleDisplayName: Calls |
| + # The home screen, Spotlight and Settings say "Oficina Calls"; inside |
| + # its own screens the app says plain "Calls". (CFBundleName stays |
| + # $(PRODUCT_NAME), CallsPhone: the generated Info.plist overrides it, |
| + # and iOS shows the display name wherever a person sees the app.) |
| + INFOPLIST_KEY_CFBundleDisplayName: Oficina Calls |
| INFOPLIST_KEY_NSCameraUsageDescription: Calls uses your camera so people in your meeting can see you. |
| INFOPLIST_KEY_NSMicrophoneUsageDescription: Calls uses your microphone so people in your meeting can hear you. |
| INFOPLIST_KEY_UILaunchScreen_Generation: YES |
| @@ -69,7 +73,8 @@ targets: |
| info: |
| path: ../build/ios-broadcast-info.plist |
| properties: |
| - CFBundleDisplayName: Calls |
| + # Control Center's screen-recording list names the extension. |
| + CFBundleDisplayName: Oficina Calls |
| CallsAppGroup: $(CALLS_APP_GROUP) |
| NSExtension: |
| NSExtensionPointIdentifier: com.apple.broadcast-services-upload |
diff --git a/native/scripts/build-mac.sh b/native/scripts/build-mac.sh| index 1a8b436..c5f8bfa 100755 |
| --- a/native/scripts/build-mac.sh |
| +++ b/native/scripts/build-mac.sh |
| @@ -6,5 +6,5 @@ configuration="${OFICINA_BUILD_CONFIGURATION:-debug}" |
| swift build --package-path apple --configuration "$configuration" --product CallsMac |
| python3 scripts/bundle-mac.py "$configuration" |
| shared_native="${OFICINA_NATIVE_PACKAGE_PATH:-apple/.build/checkouts/native}" |
| -python3 "$shared_native/tools/mac_updates.py" build/Calls.app --package apple "$@" |
| -printf 'Built %s/build/Calls.app\n' "$PWD" |
| +python3 "$shared_native/tools/mac_updates.py" "build/Oficina Calls.app" --package apple "$@" |
| +printf 'Built %s/build/Oficina Calls.app\n' "$PWD" |
diff --git a/native/scripts/bundle-mac.py b/native/scripts/bundle-mac.py| index 9eb00c2..176fd13 100644 |
| --- a/native/scripts/bundle-mac.py |
| +++ b/native/scripts/bundle-mac.py |
| @@ -10,8 +10,18 @@ configuration = sys.argv[1] if len(sys.argv) > 1 else 'debug' |
| if configuration not in ('debug', 'release'): raise ValueError('invalid build configuration') |
| root = Path(__file__).resolve().parent.parent |
| products = Path(subprocess.check_output(['swift', 'build', '--package-path', str(root / 'apple'), '--configuration', configuration, '--show-bin-path'], text=True).strip()) |
| -bundle = root / 'build/Calls.app/Contents' |
| +# Finder, the Dock and Spotlight show "Oficina Calls" (the .app file name and |
| +# CFBundleDisplayName), apart from every other calls app. Inside its own |
| +# windows the app is plain "Calls": CFBundleName is the short name the menu bar |
| +# and the About panel use. (SwiftUI titles About, Hide, Quit and Help with the |
| +# display name, so CallsMac.swift's PlainNameCommands names them itself.) Same |
| +# rule as rastrillo/native tools/bundle-mac.py. |
| +display_name = 'Oficina Calls' |
| +bundle = root / f'build/{display_name}.app/Contents' |
| if bundle.parent.exists(): shutil.rmtree(bundle.parent) |
| +# Builds before the rename wrote build/Calls.app; one left behind would be |
| +# opened by mistake, so it goes. |
| +if (root / 'build/Calls.app').exists(): shutil.rmtree(root / 'build/Calls.app') |
| (bundle / 'MacOS').mkdir(parents=True, exist_ok=True) |
| (bundle / 'Frameworks').mkdir(parents=True, exist_ok=True) |
| (bundle / 'Resources').mkdir(parents=True, exist_ok=True) |
| @@ -72,7 +82,7 @@ subprocess.run(['iconutil', '-c', 'icns', str(iconset), '-o', |
| info = { |
| 'CFBundleURLTypes': [{'CFBundleURLName': 'works.oficina.calls.join', |
| 'CFBundleURLSchemes': ['oficina-calls']}], |
| - 'CFBundleName': 'Calls', 'CFBundleDisplayName': 'Calls', |
| + 'CFBundleName': 'Calls', 'CFBundleDisplayName': display_name, |
| # Paul, 2026-11-14: every Oficina build, Sparkle and App Store, Mac and |
| # iPhone, is works.oficina.<app>. mac-updates.json names the same ID, and |
| # mac_updates.py refuses a release whose Info.plist disagrees with it. |