Native level-up phase 0: works.oficina.sheets everywhere, "Oficina Sheets" in Finder, rastrillo/native main b6a4067
Paul's rulings 2026-11-14: works.oficina.* bundle IDs on every build (review app works.oficina.sheets.review); "Oficina Sheets" in Finder/Dock/Spotlight/ home screen, plain "Sheets" inside. Pins rastrillo/native to main b6a4067 in all six places; the Sparkle Mac build registers works.oficina.sheets via url_schemes; regenerates the Mac App Store project (was missing 3 sources); test-mac-bundle.py's fallback-path check updated for Swift 6.4.2. No entitlements or sign-in code changed. Release note: the zip becomes works.oficina.sheets-N.zip; Home's download links need updating then. Reviewed by Fable at e6bfed6: APPROVE AFTER FIXES (make test, Swift tests, Sparkle/App Store/iOS builds, test-mac-bundle.py green); f07b938 applies the required fix (review-app ID in native_review_test.go) and comment fixes, checked by the lander. Hub CI green at f07b938. Squashed from native/levelup-phase0 into main.
11 files changed,
+62
−21
internal/sheets/native_review_test.go+1 −1native/README.md+8 −4native/apple/Package.resolved+1 −1native/apple/Package.swift+1 −1native/apple/Sources/SheetsApp/SheetsAccountWindow.swift+1 −1native/ios/project.yml+3 −3native/mac-updates.json+5 −2native/macos/Info.plist+1 −1native/macos/SheetsMacStore.xcodeproj/project.pbxproj+18 −4native/macos/project.yml+8 −2native/scripts/test-mac-bundle.py+15 −1
CI passed — run details
landed from native/levelup-phase0
diff --git a/internal/sheets/native_review_test.go b/internal/sheets/native_review_test.go| index 4bf21af..9765b97 100644 |
| --- a/internal/sheets/native_review_test.go |
| +++ b/internal/sheets/native_review_test.go |
| @@ -86,7 +86,7 @@ func TestNativeReview(t *testing.T) { |
| } |
| return |
| } |
| - bundle := "net.amadan.oficina.sheets.review" |
| + bundle := "works.oficina.sheets.review" |
| run := func(args ...string) []byte { |
| t.Helper() |
| out, err := exec.CommandContext(t.Context(), "xcrun", append([]string{"simctl"}, args...)...).CombinedOutput() |
diff --git a/native/README.md b/native/README.md| index e783e81..3989b77 100644 |
| --- a/native/README.md |
| +++ b/native/README.md |
| @@ -18,10 +18,14 @@ Simulator and device builds use separate DerivedData directories. |
| `OFICINA_SKIP_PROJECT_GENERATION=1` allows the suite runner to generate the |
| project once before starting parallel builds. |
| -The shared native transport and Mac packaging tools are pinned to reviewed |
| -revision `a49307c29cf36dff2cf423c3f98b38269ce9a553` of |
| -`https://amadan.net/rastrillo/native`. Both SwiftPM and Xcode resolve that |
| -revision; no sibling development checkout is required. |
| +The shared native transport and Mac packaging tools are pinned to revision |
| +`b6a4067e39efd641fd5fa149cc666fee47bdb9b5` of |
| +`https://amadan.net/rastrillo/native`, on its main branch (the merge of |
| +`native/levelup-phase0-tools`). The pin is written in |
| +`apple/Package.swift`, `apple/Package.resolved`, `macos/project.yml`, |
| +`macos/SheetsMacStore.xcodeproj/project.pbxproj`, `ios/project.yml` and here. |
| +Both SwiftPM and Xcode resolve that revision; no sibling development checkout |
| +is required. |
| Select a cell, then edit its formula bar, double-click, or type while the |
| Mac grid has keyboard focus. Enter saves and moves down; Tab saves and |
diff --git a/native/apple/Package.resolved b/native/apple/Package.resolved| index b361d78..9a65546 100644 |
| --- a/native/apple/Package.resolved |
| +++ b/native/apple/Package.resolved |
| @@ -6,7 +6,7 @@ |
| "kind" : "remoteSourceControl", |
| "location" : "https://amadan.net/rastrillo/native", |
| "state" : { |
| - "revision" : "14ee567be2e1816002c7db4274acaf2926983b4c" |
| + "revision" : "b6a4067e39efd641fd5fa149cc666fee47bdb9b5" |
| } |
| }, |
| { |
diff --git a/native/apple/Package.swift b/native/apple/Package.swift| index 2252239..11a94bc 100644 |
| --- a/native/apple/Package.swift |
| +++ b/native/apple/Package.swift |
| @@ -3,7 +3,7 @@ import PackageDescription |
| import Foundation |
| let sharedNative: Package.Dependency = ProcessInfo.processInfo.environment["OFICINA_NATIVE_PACKAGE_PATH"].map { .package(name: "native", path: $0) } |
| - ?? .package(url: "https://amadan.net/rastrillo/native", revision: "14ee567be2e1816002c7db4274acaf2926983b4c") |
| + ?? .package(url: "https://amadan.net/rastrillo/native", revision: "b6a4067e39efd641fd5fa149cc666fee47bdb9b5") |
| let package = Package(name: "SheetsNative", defaultLocalization: "en", platforms: [.macOS(.v26), .iOS(.v26)], |
| products: [.library(name:"SheetsKit",targets:["SheetsKit"]), .executable(name:"SheetsMac",targets:["SheetsMac"]), .executable(name:"SheetsReview",targets:["SheetsReview"])], |
diff --git a/native/apple/Sources/SheetsApp/SheetsAccountWindow.swift b/native/apple/Sources/SheetsApp/SheetsAccountWindow.swift| index 295b790..c6edd46 100644 |
| --- a/native/apple/Sources/SheetsApp/SheetsAccountWindow.swift |
| +++ b/native/apple/Sources/SheetsApp/SheetsAccountWindow.swift |
| @@ -34,7 +34,7 @@ struct SheetsAccountWindow: View { |
| .id(connection.activeAccountID) |
| #endif |
| } else { |
| - NativeAccountsView("Oficina Sheets", systemImage: "tablecells", connection: connection) |
| + NativeAccountsView("Sheets", systemImage: "tablecells", connection: connection) |
| } |
| }.onOpenURL(perform: connection.handleOpenURL) |
| #if os(macOS) |
diff --git a/native/ios/project.yml b/native/ios/project.yml| index 76001d6..fde5fb3 100644 |
| --- a/native/ios/project.yml |
| +++ b/native/ios/project.yml |
| @@ -1,6 +1,6 @@ |
| name: SheetsPhone |
| options: |
| - bundleIdPrefix: net.amadan.oficina |
| + bundleIdPrefix: works.oficina |
| deploymentTarget: |
| iOS: '26.0' |
| packages: |
| @@ -8,7 +8,7 @@ packages: |
| path: ../apple |
| RastrilloNative: |
| url: https://amadan.net/rastrillo/native |
| - revision: 14ee567be2e1816002c7db4274acaf2926983b4c |
| + revision: b6a4067e39efd641fd5fa149cc666fee47bdb9b5 |
| settings: |
| base: |
| SWIFT_VERSION: '6.0' |
| @@ -65,7 +65,7 @@ targets: |
| product: RastrilloApple |
| settings: |
| base: |
| - PRODUCT_BUNDLE_IDENTIFIER: net.amadan.oficina.sheets.review |
| + PRODUCT_BUNDLE_IDENTIFIER: works.oficina.sheets.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 616a4e4..91b73c2 100644 |
| --- a/native/mac-updates.json |
| +++ b/native/mac-updates.json |
| @@ -1,6 +1,9 @@ |
| { |
| - "bundle_id": "net.amadan.oficina.sheets", |
| + "bundle_id": "works.oficina.sheets", |
| "feed_url": "https://raw.amadan.net/oficina/native-releases/main/sheets/appcast.xml", |
| "public_ed_key": "/FxO7cZnM7P5c9ZrUPUJvpCnR65sNmrzte+I5vHarE8=", |
| - "keychain_account": "oficina" |
| + "keychain_account": "oficina", |
| + "url_schemes": [ |
| + "works.oficina.sheets" |
| + ] |
| } |
diff --git a/native/macos/Info.plist b/native/macos/Info.plist| index aa4219b..b0ebdf2 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 Sheets</string> |
| + <string>Sheets</string> |
| <key>CFBundlePackageType</key> |
| <string>APPL</string> |
| <key>CFBundleShortVersionString</key> |
diff --git a/native/macos/SheetsMacStore.xcodeproj/project.pbxproj b/native/macos/SheetsMacStore.xcodeproj/project.pbxproj| index d344dfa..e4a16b1 100644 |
| --- a/native/macos/SheetsMacStore.xcodeproj/project.pbxproj |
| +++ b/native/macos/SheetsMacStore.xcodeproj/project.pbxproj |
| @@ -9,21 +9,27 @@ |
| /* Begin PBXBuildFile section */ |
| 5CC39F6614938AE329384AB8 /* AppIcon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 54261A6D711BA4C90D042C6A /* AppIcon.icns */; }; |
| 603E79126E29D73CD628EDED /* LICENSE.lucide in Resources */ = {isa = PBXBuildFile; fileRef = 5AA27588A5A207F206A0F3F6 /* LICENSE.lucide */; }; |
| + 675E6D7FD24517E3E6E4ADE6 /* SheetsDocumentWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 045B911F09D773BEFDC72699 /* SheetsDocumentWindow.swift */; }; |
| + 9952223BDBC58A617CB27A32 /* SheetsWindowCommands.swift in Sources */ = {isa = PBXBuildFile; fileRef = 75A077C517BE88E0A30D99F5 /* SheetsWindowCommands.swift */; }; |
| 9C78334F6EDBA092C0D0E169 /* SheetsApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 916E654E0C8D3B86BB58C018 /* SheetsApp.swift */; }; |
| B09E36EA52DF0E19FC743C56 /* SheetsKit in Frameworks */ = {isa = PBXBuildFile; productRef = CD52B595B2129268F78A0A8A /* SheetsKit */; }; |
| + BD9DBE120B9C98103A830123 /* SheetsWindows.swift in Sources */ = {isa = PBXBuildFile; fileRef = 259F4712F7A24032E3A4D3BE /* SheetsWindows.swift */; }; |
| C52F3F48EAE4BD0A51D2BE94 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 8AA0125DF292C29086DFC83E /* PrivacyInfo.xcprivacy */; }; |
| CAA9732AF6C006EFA3A6EEEC /* SheetsAccountWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B6A575CBF89AE7854830BA2 /* SheetsAccountWindow.swift */; }; |
| DBF0A51B0431713C3FFB89A9 /* RastrilloApple in Frameworks */ = {isa = PBXBuildFile; productRef = 6334833E1C593E852E1F7FD4 /* RastrilloApple */; }; |
| /* End PBXBuildFile section */ |
| /* Begin PBXFileReference section */ |
| + 045B911F09D773BEFDC72699 /* SheetsDocumentWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SheetsDocumentWindow.swift; sourceTree = "<group>"; }; |
| 12E225ACCFB2785464CCBCB8 /* apple */ = {isa = PBXFileReference; lastKnownFileType = folder; name = apple; path = ../apple; sourceTree = SOURCE_ROOT; }; |
| - 255C08D1CA0763B1DE054572 /* SheetsMacStore.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SheetsMacStore.app; sourceTree = BUILT_PRODUCTS_DIR; }; |
| + 259F4712F7A24032E3A4D3BE /* SheetsWindows.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SheetsWindows.swift; sourceTree = "<group>"; }; |
| 4B6A575CBF89AE7854830BA2 /* SheetsAccountWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SheetsAccountWindow.swift; sourceTree = "<group>"; }; |
| 54261A6D711BA4C90D042C6A /* AppIcon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = AppIcon.icns; sourceTree = "<group>"; }; |
| 5AA27588A5A207F206A0F3F6 /* LICENSE.lucide */ = {isa = PBXFileReference; path = LICENSE.lucide; sourceTree = "<group>"; }; |
| + 75A077C517BE88E0A30D99F5 /* SheetsWindowCommands.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SheetsWindowCommands.swift; sourceTree = "<group>"; }; |
| 8AA0125DF292C29086DFC83E /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; }; |
| 916E654E0C8D3B86BB58C018 /* SheetsApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SheetsApp.swift; sourceTree = "<group>"; }; |
| + D338EB06F85C82A164677B42 /* Oficina Sheets.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Oficina Sheets.app"; sourceTree = BUILT_PRODUCTS_DIR; }; |
| /* End PBXFileReference section */ |
| /* Begin PBXFrameworksBuildPhase section */ |
| @@ -42,7 +48,7 @@ |
| 00DE240DA7582B0C0B555805 /* Products */ = { |
| isa = PBXGroup; |
| children = ( |
| - 255C08D1CA0763B1DE054572 /* SheetsMacStore.app */, |
| + D338EB06F85C82A164677B42 /* Oficina Sheets.app */, |
| ); |
| name = Products; |
| sourceTree = "<group>"; |
| @@ -70,6 +76,9 @@ |
| children = ( |
| 4B6A575CBF89AE7854830BA2 /* SheetsAccountWindow.swift */, |
| 916E654E0C8D3B86BB58C018 /* SheetsApp.swift */, |
| + 045B911F09D773BEFDC72699 /* SheetsDocumentWindow.swift */, |
| + 75A077C517BE88E0A30D99F5 /* SheetsWindowCommands.swift */, |
| + 259F4712F7A24032E3A4D3BE /* SheetsWindows.swift */, |
| ); |
| name = SheetsApp; |
| path = ../apple/Sources/SheetsApp; |
| @@ -107,7 +116,7 @@ |
| 6334833E1C593E852E1F7FD4 /* RastrilloApple */, |
| ); |
| productName = SheetsMacStore; |
| - productReference = 255C08D1CA0763B1DE054572 /* SheetsMacStore.app */; |
| + productReference = D338EB06F85C82A164677B42 /* Oficina Sheets.app */; |
| productType = "com.apple.product-type.application"; |
| }; |
| /* End PBXNativeTarget section */ |
| @@ -167,6 +176,9 @@ |
| files = ( |
| CAA9732AF6C006EFA3A6EEEC /* SheetsAccountWindow.swift in Sources */, |
| 9C78334F6EDBA092C0D0E169 /* SheetsApp.swift in Sources */, |
| + 675E6D7FD24517E3E6E4ADE6 /* SheetsDocumentWindow.swift in Sources */, |
| + 9952223BDBC58A617CB27A32 /* SheetsWindowCommands.swift in Sources */, |
| + BD9DBE120B9C98103A830123 /* SheetsWindows.swift in Sources */, |
| ); |
| runOnlyForDeploymentPostprocessing = 0; |
| }; |
| @@ -185,6 +197,7 @@ |
| "@executable_path/../Frameworks", |
| ); |
| PRODUCT_BUNDLE_IDENTIFIER = works.oficina.sheets; |
| + PRODUCT_NAME = "Oficina Sheets"; |
| PROVISIONING_PROFILE_SPECIFIER = "$(OFICINA_PROVISIONING_PROFILE)"; |
| SDKROOT = macosx; |
| }; |
| @@ -262,6 +275,7 @@ |
| "@executable_path/../Frameworks", |
| ); |
| PRODUCT_BUNDLE_IDENTIFIER = works.oficina.sheets; |
| + PRODUCT_NAME = "Oficina Sheets"; |
| PROVISIONING_PROFILE_SPECIFIER = "$(OFICINA_PROVISIONING_PROFILE)"; |
| SDKROOT = macosx; |
| }; |
| @@ -370,7 +384,7 @@ |
| repositoryURL = "https://amadan.net/rastrillo/native"; |
| requirement = { |
| kind = revision; |
| - revision = 14ee567be2e1816002c7db4274acaf2926983b4c; |
| + revision = b6a4067e39efd641fd5fa149cc666fee47bdb9b5; |
| }; |
| }; |
| /* End XCRemoteSwiftPackageReference section */ |
diff --git a/native/macos/project.yml b/native/macos/project.yml| index 6d06575..7ca38d3 100644 |
| --- a/native/macos/project.yml |
| +++ b/native/macos/project.yml |
| @@ -7,7 +7,7 @@ packages: |
| path: ../apple |
| RastrilloNative: |
| url: https://amadan.net/rastrillo/native |
| - revision: 14ee567be2e1816002c7db4274acaf2926983b4c |
| + revision: b6a4067e39efd641fd5fa149cc666fee47bdb9b5 |
| settings: |
| base: |
| SWIFT_VERSION: '6.0' |
| @@ -19,6 +19,11 @@ targets: |
| SheetsMacStore: |
| type: application |
| platform: macOS |
| + # The .app file name, which Finder, the Dock and Spotlight show (Paul, |
| + # 2026-11-14). CFBundleName is the plain short name, as rastrillo's |
| + # bundler writes it; SwiftUI's About/Hide/Quit items read |
| + # CFBundleDisplayName, so they still say "Oficina Sheets". |
| + productName: Oficina Sheets |
| sources: |
| - ../apple/Sources/SheetsApp |
| - path: AppIcon.icns |
| @@ -36,7 +41,7 @@ targets: |
| path: Info.plist |
| properties: |
| CFBundleDisplayName: Oficina Sheets |
| - CFBundleName: Oficina Sheets |
| + CFBundleName: Sheets |
| CFBundleShortVersionString: $(MARKETING_VERSION) |
| CFBundleVersion: $(CURRENT_PROJECT_VERSION) |
| CFBundleIconFile: AppIcon |
| @@ -51,4 +56,5 @@ targets: |
| base: |
| PROVISIONING_PROFILE_SPECIFIER: $(OFICINA_PROVISIONING_PROFILE) |
| PRODUCT_BUNDLE_IDENTIFIER: works.oficina.sheets |
| + PRODUCT_NAME: Oficina Sheets |
| CODE_SIGN_ENTITLEMENTS: AppStore.entitlements |
diff --git a/native/scripts/test-mac-bundle.py b/native/scripts/test-mac-bundle.py| index 3096f67..355a10d 100644 |
| --- a/native/scripts/test-mac-bundle.py |
| +++ b/native/scripts/test-mac-bundle.py |
| @@ -22,11 +22,25 @@ with tempfile.TemporaryDirectory(prefix="oficina-sheets-launch-") as directory: |
| assert len(apps) == 1, "Expected one application in release archive" |
| app = apps[0] |
| info = plistlib.loads((app / "Contents/Info.plist").read_bytes()) |
| + # Paul, 2026-11-14: works.oficina.* on every build, "Oficina Sheets" where |
| + # Finder looks, CFBundleName the plain short name "Sheets" (SwiftUI's |
| + # About/Hide/Quit items read the display name, not this), and the sign-in |
| + # scheme registered so the browser's callback reaches the app. |
| + assert info["CFBundleIdentifier"] == "works.oficina.sheets", info["CFBundleIdentifier"] |
| + assert app.name == "Oficina Sheets.app" and info["CFBundleDisplayName"] == "Oficina Sheets", app.name |
| + assert info["CFBundleName"] == "Sheets", info["CFBundleName"] |
| + assert any("works.oficina.sheets" in entry.get("CFBundleURLSchemes", []) |
| + for entry in info.get("CFBundleURLTypes", [])), "works.oficina.sheets URL scheme not registered" |
| executable = app / "Contents/MacOS" / info["CFBundleExecutable"] |
| strings = subprocess.check_output(["strings", str(executable)], text=True).splitlines() |
| + # Before Swift 6.4 the resource accessor fell back to the absolute .build |
| + # path it was compiled in; deny every such path the binary names. Swift |
| + # 6.4.2's accessor names none (Bundle.main, Bundle(for:), the bundle URL), |
| + # so the scan finds nothing there. This checkout's own build directory is |
| + # denied either way, which keeps the test denying something real. |
| fallbacks = {line.split("/.build/", 1)[0] + "/.build" for line in strings |
| if line.startswith("/") and "/.build/" in line and line.endswith(".bundle")} |
| - assert fallbacks, "No SwiftPM fallback paths found; review test coverage" |
| + fallbacks.add(str(Path(__file__).resolve().parents[1] / "apple/.build")) |
| profile = '(version 1)(allow default)' + ''.join( |
| f'(deny file-read* (subpath {json.dumps(path)}))' for path in sorted(fallbacks)) |
| probe = root / "windows.swift" |