Bundle IDs works.oficina.calendar everywhere; Oficina Calendar outside, Calendar inside
Human
Prompt
(Orchestrating agent, native level-up phase 0 for Calendar) Bundle IDs -> works.oficina.calendar on every build: Mac Sparkle build (native/mac-updates.json bundle_id), App Store Mac, iOS; the review/dev variant becomes works.oficina.calendar.review. Keep the custom URL scheme works.oficina.calendar and make sure the Mac Sparkle bundle registers it. Names: Finder/Dock/Spotlight/home-screen "Oficina Calendar"; plain "Calendar" inside the app's own UI. Update: add "url_schemes": ["works.oficina.calendar"] to native/mac-updates.json instead of the wrapper; make the menu-bar item say "Calendar" too.
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
Sparkle: mac-updates.json names works.oficina.calendar, the pinned bundle-mac.py's default (it refuses a mismatch), and url_schemes ["works.oficina.calendar"], which bundle-mac.py writes to CFBundleURLTypes. The bundle is "Oficina Calendar.app", CFBundleDisplayName "Oficina Calendar", CFBundleName "Calendar". Mac App Store: product "Oficina Calendar.app" (module name kept CalendarMacStore), CFBundleName "Calendar" (was the 16-character "Oficina Calendar"). iOS: review app works.oficina.calendar.review, bundleIdPrefix works.oficina (UI-test bundle); native_test.go follows. In-app: the accounts/sign-in title and the menu-bar extra say "Calendar".
Agent notes
An unconfigured dev build (build-mac.sh with no --updates-config) registers no URL scheme; pass --url-scheme works.oficina.calendar if one is needed. iOS CFBundleName stays $(PRODUCT_NAME)=CalendarPhone: with GENERATE_INFOPLIST_FILE Xcode overrides a plist value, and iOS never shows it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 files changed,
+18
−9
internal/calendar/native_test.go+1 −1native/apple/Sources/CalendarApp/CalendarApp.swift+3 −3native/ios/project.yml+2 −2native/mac-updates.json+4 −1native/macos/CalendarMacStore.xcodeproj/project.pbxproj+4 −0native/macos/Info.plist+1 −1native/macos/project.yml+3 −1
CI passed — run details
CI log
=== vet === go vet ./... go vet -tags browser ./internal/calendartest/ === fmt === === test === go test ./... ? amadan.net/oficina/calendar/cmd/calendar [no test files] ? amadan.net/oficina/calendar/cmd/calendar-contract [no test files] ok amadan.net/oficina/calendar/internal/calendar 24.044s ? amadan.net/oficina/calendar/internal/calendar/icons [no test files] ? amadan.net/oficina/calendar/internal/calendar/keymailtest [no test files] ? amadan.net/oficina/calendar/internal/calendar/seal [no test files] ? amadan.net/oficina/calendar/internal/calendar/teamstate [no test files] ok amadan.net/oficina/calendar/internal/calendartest 3.511s ok amadan.net/oficina/calendar/internal/guardstest 0.076s ? amadan.net/oficina/calendar/scripts/writeestilo [no test files] === migration-check === go tool rastrillo migration check rastrillo migration check: models and migrations agree
diff --git a/internal/calendar/native_test.go b/internal/calendar/native_test.go| index 73c8bc7..ff4b011 100644 |
| --- a/internal/calendar/native_test.go |
| +++ b/internal/calendar/native_test.go |
| @@ -85,7 +85,7 @@ func TestNativeCalendarRoundTrip(t *testing.T) { |
| } |
| input, _ := json.Marshal(map[string]any{"origin": server.URL, "credential": credential, "output": os.Getenv("NATIVE_REVIEW_OUTPUT")}) |
| if simulator := os.Getenv("NATIVE_REVIEW_SIMULATOR"); simulator != "" { |
| - bundle := "net.amadan.oficina.calendar.review" |
| + bundle := "works.oficina.calendar.review" |
| run := func(args ...string) []byte { |
| t.Helper() |
| out, err := exec.CommandContext(t.Context(), "xcrun", append([]string{"simctl"}, args...)...).CombinedOutput() |
diff --git a/native/apple/Sources/CalendarApp/CalendarApp.swift b/native/apple/Sources/CalendarApp/CalendarApp.swift| index 78368d4..1d77478 100644 |
| --- a/native/apple/Sources/CalendarApp/CalendarApp.swift |
| +++ b/native/apple/Sources/CalendarApp/CalendarApp.swift |
| @@ -21,7 +21,7 @@ import AppKit |
| if let client = connection.client { |
| CalendarWorkspace(client: client, model: model, accounts: { model.clear(); connection.showAccounts(); model = CalendarModel() }, signOut: { model.clear(); connection.signOut(); model = CalendarModel() }) |
| } else { |
| - NativeAccountsView("Oficina Calendar", systemImage: "calendar", connection: connection) |
| + NativeAccountsView("Calendar", systemImage: "calendar", connection: connection) |
| } |
| }.id(connection.activeAccountID).onOpenURL(perform: connection.handleOpenURL).tint(Color(red: 0.78, green: 0.22, blue: 0.29)) |
| #if os(macOS) |
| @@ -37,11 +37,11 @@ import AppKit |
| #if os(macOS) |
| Settings { CalendarSettingsView() } |
| // MenuBarExtra can echo its current visibility; avoid a UserDefaults update loop. |
| - MenuBarExtra("Oficina Calendar", systemImage: "calendar", isInserted: Binding(get: { showMenuBar }, set: { if showMenuBar != $0 { showMenuBar = $0 } })) { |
| + MenuBarExtra("Calendar", systemImage: "calendar", isInserted: Binding(get: { showMenuBar }, set: { if showMenuBar != $0 { showMenuBar = $0 } })) { |
| if let client = connection.client { |
| CalendarMenuView(client: client, model: model).tint(Color(red: 0.78, green: 0.22, blue: 0.29)) |
| } else { |
| - NativeAccountsView("Oficina Calendar", systemImage: "calendar", connection: connection) |
| + NativeAccountsView("Calendar", systemImage: "calendar", connection: connection) |
| .frame(width: 380, height: 480) |
| } |
| }.menuBarExtraStyle(.window) |
diff --git a/native/ios/project.yml b/native/ios/project.yml| index fcd4ef1..3ddd678 100644 |
| --- a/native/ios/project.yml |
| +++ b/native/ios/project.yml |
| @@ -1,6 +1,6 @@ |
| name: CalendarPhone |
| options: |
| - bundleIdPrefix: net.amadan.oficina |
| + bundleIdPrefix: works.oficina |
| deploymentTarget: |
| iOS: '17.0' |
| packages: |
| @@ -65,7 +65,7 @@ targets: |
| product: RastrilloApple |
| settings: |
| base: |
| - PRODUCT_BUNDLE_IDENTIFIER: net.amadan.oficina.calendar.review |
| + PRODUCT_BUNDLE_IDENTIFIER: works.oficina.calendar.review |
| TARGETED_DEVICE_FAMILY: 1,2 |
| GENERATE_INFOPLIST_FILE: true |
| INFOPLIST_KEY_UILaunchScreen_Generation: true |
diff --git a/native/mac-updates.json b/native/mac-updates.json| index 24abb3c..8f9d67b 100644 |
| --- a/native/mac-updates.json |
| +++ b/native/mac-updates.json |
| @@ -1,5 +1,8 @@ |
| { |
| - "bundle_id": "net.amadan.oficina.calendar", |
| + "bundle_id": "works.oficina.calendar", |
| + "url_schemes": [ |
| + "works.oficina.calendar" |
| + ], |
| "feed_url": "https://raw.amadan.net/oficina/native-releases/main/calendar/appcast.xml", |
| "public_ed_key": "/FxO7cZnM7P5c9ZrUPUJvpCnR65sNmrzte+I5vHarE8=", |
| "keychain_account": "oficina" |
diff --git a/native/macos/CalendarMacStore.xcodeproj/project.pbxproj b/native/macos/CalendarMacStore.xcodeproj/project.pbxproj| index 8a9b931..038b159 100644 |
| --- a/native/macos/CalendarMacStore.xcodeproj/project.pbxproj |
| +++ b/native/macos/CalendarMacStore.xcodeproj/project.pbxproj |
| @@ -181,6 +181,8 @@ |
| "@executable_path/../Frameworks", |
| ); |
| PRODUCT_BUNDLE_IDENTIFIER = works.oficina.calendar; |
| + PRODUCT_MODULE_NAME = CalendarMacStore; |
| + PRODUCT_NAME = "Oficina Calendar"; |
| PROVISIONING_PROFILE_SPECIFIER = "$(OFICINA_PROVISIONING_PROFILE)"; |
| SDKROOT = macosx; |
| }; |
| @@ -198,6 +200,8 @@ |
| "@executable_path/../Frameworks", |
| ); |
| PRODUCT_BUNDLE_IDENTIFIER = works.oficina.calendar; |
| + PRODUCT_MODULE_NAME = CalendarMacStore; |
| + PRODUCT_NAME = "Oficina Calendar"; |
| PROVISIONING_PROFILE_SPECIFIER = "$(OFICINA_PROVISIONING_PROFILE)"; |
| SDKROOT = macosx; |
| }; |
diff --git a/native/macos/Info.plist b/native/macos/Info.plist| index dd46943..4f78167 100644 |
| --- a/native/macos/Info.plist |
| +++ b/native/macos/Info.plist |
| @@ -15,7 +15,7 @@ |
| <key>CFBundleInfoDictionaryVersion</key> |
| <string>6.0</string> |
| <key>CFBundleName</key> |
| - <string>Oficina Calendar</string> |
| + <string>Calendar</string> |
| <key>CFBundlePackageType</key> |
| <string>APPL</string> |
| <key>CFBundleShortVersionString</key> |
diff --git a/native/macos/project.yml b/native/macos/project.yml| index b4a0f46..72fe4ad 100644 |
| --- a/native/macos/project.yml |
| +++ b/native/macos/project.yml |
| @@ -36,7 +36,7 @@ targets: |
| path: Info.plist |
| properties: |
| CFBundleDisplayName: Oficina Calendar |
| - CFBundleName: Oficina Calendar |
| + CFBundleName: Calendar |
| CFBundleShortVersionString: $(MARKETING_VERSION) |
| CFBundleVersion: $(CURRENT_PROJECT_VERSION) |
| CFBundleIconFile: AppIcon |
| @@ -51,4 +51,6 @@ targets: |
| base: |
| PROVISIONING_PROFILE_SPECIFIER: $(OFICINA_PROVISIONING_PROFILE) |
| PRODUCT_BUNDLE_IDENTIFIER: works.oficina.calendar |
| + PRODUCT_NAME: Oficina Calendar |
| + PRODUCT_MODULE_NAME: CalendarMacStore |
| CODE_SIGN_ENTITLEMENTS: AppStore.entitlements |