Memoria: shared plain-name menus, quiet updates, rastrillo/native c989034
Pins rastrillo/native to main c989034 in all six places; PlainAppNameCommands first in .commands (About/Hide/Quit/Help say Memoria) plus SidebarCommands; localizations [en] (Memoria ships no translations); install automatic (quiet Sparkle updates); build-mac.sh registers works.oficina.memoria for dev builds. Reviewed by the lander; make ci green; hub CI passed at 3305c3b. Release 0.1.1 (3) notarised from this tree. Squashed from native/menu-name-release into main.
12 files changed,
+61
−16
go.mod+1 −1go.sum+2 −2native/README.md+28 −5native/apple/Package.resolved+1 −1native/apple/Package.swift+1 −1native/apple/Sources/MemoriaApp/MemoriaApp.swift+9 −1native/ios/project.yml+1 −1native/mac-updates.json+7 −1native/macos/Info.plist+4 −0native/macos/MemoriaMacStore.xcodeproj/project.pbxproj+1 −1native/macos/project.yml+3 −1native/scripts/build-mac.sh+3 −1
CI passed — run details
CI log
=== vet === go vet ./... go vet -tags browser ./internal/memoriatest/ === fmt === === test === go test ./... ? amadan.net/oficina/memoria/cmd/memoria [no test files] ? amadan.net/oficina/memoria/cmd/memoria-contract [no test files] ok amadan.net/oficina/memoria/internal/memoria 11.354s ok amadan.net/oficina/memoria/internal/memoria/chunk (cached) ok amadan.net/oficina/memoria/internal/memoria/fact (cached) ? amadan.net/oficina/memoria/internal/memoria/icons [no test files] ok amadan.net/oficina/memoria/internal/memoria/index (cached) ok amadan.net/oficina/memoria/internal/memoria/notion (cached) ok amadan.net/oficina/memoria/internal/memoria/provider (cached) ok amadan.net/oficina/memoria/internal/memoria/query (cached) ok amadan.net/oficina/memoria/internal/memoria/seal (cached) ok amadan.net/oficina/memoria/internal/memoria/sibling (cached) ? amadan.net/oficina/memoria/internal/memoria/teamstate [no test files] ok amadan.net/oficina/memoria/internal/memoriatest 5.063s ? amadan.net/oficina/memoria/scripts/writeestilo [no test files] ? amadan.net/oficina/memoria/tools/bench [no test files] ? amadan.net/oficina/memoria/tools/drive [no test files] ? amadan.net/oficina/memoria/tools/seed [no test files] ? amadan.net/oficina/memoria/tools/vendorassets [no test files] === migration-check === go tool rastrillo migration check rastrillo migration check: models and migrations agree
landed from native/menu-name-release
diff --git a/go.mod b/go.mod| index 193162e..efd4b25 100644 |
| --- a/go.mod |
| +++ b/go.mod |
| @@ -12,7 +12,7 @@ require ( |
| amadan.net/oficina/home/roster v0.0.0-20261028171508-67c12e39a9d2 |
| amadan.net/oficina/home/teammode v0.0.0-20261028171508-67c12e39a9d2 |
| amadan.net/oficina/suite v0.0.0-20261102002704-91affa14eae4 |
| - amadan.net/rastrillo/native/server v0.0.0-20261114094022-b6a4067e39ef |
| + amadan.net/rastrillo/native/server v0.0.0-20261114133130-c989034602fd |
| github.com/carlosframework/rastrillo v0.23.0 |
| github.com/chromedp/cdproto v0.0.0-20250724212937-08a3db8b4327 |
| github.com/chromedp/chromedp v0.14.2 |
diff --git a/go.sum b/go.sum| index a3f181e..5399669 100644 |
| --- a/go.sum |
| +++ b/go.sum |
| @@ -12,8 +12,8 @@ amadan.net/oficina/home/teammode v0.0.0-20261028171508-67c12e39a9d2 h1:0PQiRUkC+ |
| amadan.net/oficina/home/teammode v0.0.0-20261028171508-67c12e39a9d2/go.mod h1:dXBZeB2ic33SIZiGUCzafmviUT8TYWgzSYZvo2rM6zA= |
| amadan.net/oficina/suite v0.0.0-20261102002704-91affa14eae4 h1:BP+KHZTSgL7HDCz9IL/gxKXmbmXQpclUlJIyQEY/N2E= |
| amadan.net/oficina/suite v0.0.0-20261102002704-91affa14eae4/go.mod h1:Xgw0N+DBiDzkhQHm/nIhgumfaiMElDg/KIFD1OxTm5w= |
| -amadan.net/rastrillo/native/server v0.0.0-20261114094022-b6a4067e39ef h1:lUW2vNfFDhs6JO/oJKsEDqGXWYymuvcAaXXrVLGDCP4= |
| -amadan.net/rastrillo/native/server v0.0.0-20261114094022-b6a4067e39ef/go.mod h1:ZaaxeE278dJltdrLwmwpxUjQ5wuKzqDAVSNRet+WupY= |
| +amadan.net/rastrillo/native/server v0.0.0-20261114133130-c989034602fd h1:bZOyKxnshpVjbtWzNhZwnMnj/YjRaLWTg5XdNaVWWOA= |
| +amadan.net/rastrillo/native/server v0.0.0-20261114133130-c989034602fd/go.mod h1:ZaaxeE278dJltdrLwmwpxUjQ5wuKzqDAVSNRet+WupY= |
| amadan.net/rastrillo/rastrillo v0.27.1-0.20261006204347-fb806a287060 h1:K2PXcCKfm+AYrqgH1ea6cNsFs4sN7MKLvq+uBY11NZE= |
| amadan.net/rastrillo/rastrillo v0.27.1-0.20261006204347-fb806a287060/go.mod h1:WmC8TAIfqjAkSwmD+FCTqr7VuqAO5FaX03HlV49K608= |
| amadan.net/rastrillo/rastrillo/money v0.1.0 h1:MxU4oqNrW8abxRTkgZBv24OYNpFnvonajNqeLIzmmaM= |
diff --git a/native/README.md b/native/README.md| index 6053176..d140b7c 100644 |
| --- a/native/README.md |
| +++ b/native/README.md |
| @@ -11,10 +11,33 @@ responses and generated answers are held in memory. |
| Every build is `works.oficina.memoria` (Sparkle Mac, App Store Mac and iOS); |
| the iOS review fixture is `works.oficina.memoria.review`. Finder, the Dock, |
| Spotlight and the home screen say "Oficina Memoria"; the app's own windows and |
| -the Mac menu bar say "Memoria". The Sparkle build registers the |
| -`works.oficina.memoria` URL scheme from `url_schemes` in |
| -`native/mac-updates.json`, so build it with `--updates-config mac-updates.json` |
| -when sign-in needs the browser's "Return to Memoria" link. |
| +the Mac menu bar say "Memoria" (`PlainAppNameCommands`, first in the Mac |
| +`.commands`, titles About, Hide, Quit and Help with it). `build-mac.sh` |
| +registers the `works.oficina.memoria` URL scheme on every build, so the |
| +browser's "Return to Memoria" link works in a plain development build. Pass |
| +`--updates-config mac-updates.json` only for a release: it turns on the live |
| +update feed, and a build carrying the feed with a low build number (the script |
| +defaults to build 1) is offered every published release. |
| + |
| +Memoria's own strings are English only, so `mac-updates.json` declares |
| +`"localizations": ["en"]` and the app reads English throughout, the shared |
| +kit's menu and sign-in strings included. When Memoria's strings are |
| +translated, add those languages there and to `CFBundleLocalizations` in |
| +`native/macos/project.yml`. |
| + |
| +The Mac app has no Settings scene yet. When one is added, give its content |
| +`.navigationTitle("Memoria")`: SwiftUI otherwise titles the window |
| +"Oficina Memoria Settings" (rastrillo/native `docs/mac-updates.md`). |
| + |
| +Sparkle releases: the copy on Paul's Mac is `net.amadan.oficina.memoria` |
| +0.1.0 build 1 with no `SUFeedURL`, so it cannot update itself and needs one |
| +manual reinstall. The feed's newest item is build 2, so the next release is |
| +build 3 or later, archived as `works.oficina.memoria-<build>.zip`. |
| +`mac-updates.json` sets `"install": "automatic"`, as Calls and Docs do: the |
| +release checks daily, downloads in the background and installs on quit, and |
| +Sparkle never asks whether to check automatically. The code still uses |
| +`NativeUpdater()`'s default policy; moving to `.quiet` with |
| +`NativeUpdateNotice` is the later chrome work. |
| Build Mac with `native/scripts/build-mac.sh`; build the simulator app with |
| `native/scripts/build-iphone.sh`. For a physical device use |
| @@ -25,7 +48,7 @@ The generated projects and build products are ignored. |
| The Swift package and the Go server module (`go.mod`, |
| `amadan.net/rastrillo/native/server`) both pin Rastrillo Native main |
| -`b6a4067e39efd641fd5fa149cc666fee47bdb9b5` (`native/apple/Package.swift`). A |
| +`c989034602fd540531e845b0934864575be11b3e` (`native/apple/Package.swift`). A |
| repin puts one revision in all six places: `native/apple/Package.swift`, |
| `native/apple/Package.resolved`, `native/macos/project.yml`, |
| `native/ios/project.yml`, the generated `native/macos/MemoriaMacStore.xcodeproj` |
diff --git a/native/apple/Package.resolved b/native/apple/Package.resolved| index 99828f4..c27db9a 100644 |
| --- a/native/apple/Package.resolved |
| +++ b/native/apple/Package.resolved |
| @@ -5,7 +5,7 @@ |
| "kind" : "remoteSourceControl", |
| "location" : "https://amadan.net/rastrillo/native", |
| "state" : { |
| - "revision" : "b6a4067e39efd641fd5fa149cc666fee47bdb9b5" |
| + "revision" : "c989034602fd540531e845b0934864575be11b3e" |
| } |
| }, |
| { |
diff --git a/native/apple/Package.swift b/native/apple/Package.swift| index 3760040..740ee1d 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: "b6a4067e39efd641fd5fa149cc666fee47bdb9b5") |
| + ?? .package(url: "https://amadan.net/rastrillo/native", revision: "c989034602fd540531e845b0934864575be11b3e") |
| let package = Package(name: "MemoriaNative", platforms: [.macOS(.v14), .iOS(.v17)], |
| products: [.library(name: "MemoriaKit", targets: ["MemoriaKit"]), .executable(name: "MemoriaMac", targets: ["MemoriaMac"])], |
diff --git a/native/apple/Sources/MemoriaApp/MemoriaApp.swift b/native/apple/Sources/MemoriaApp/MemoriaApp.swift| index 85fbf57..d3d7710 100644 |
| --- a/native/apple/Sources/MemoriaApp/MemoriaApp.swift |
| +++ b/native/apple/Sources/MemoriaApp/MemoriaApp.swift |
| @@ -22,9 +22,17 @@ import SwiftUI |
| } |
| #if os(macOS) |
| .defaultSize(width: 1120, height: 780) |
| + .commands { |
| + // First, so About, Hide, Quit and Help say "Memoria", not the display |
| + // name "Oficina Memoria", and Check for Updates (after .appInfo) stays. |
| + PlainAppNameCommands() |
| + // The Help group it replaces carried SwiftUI's hidden ⌥⌘S sidebar |
| + // alias; View ▸ Show Sidebar (⌃⌘S) keeps the split view's sidebar. |
| + SidebarCommands() |
| #if canImport(RastrilloMacUpdates) |
| - .commands { NativeUpdateCommands(updater: updater) } |
| + NativeUpdateCommands(updater: updater) |
| #endif |
| + } |
| #endif |
| } |
| } |
diff --git a/native/ios/project.yml b/native/ios/project.yml| index 6bde302..e6fb1e5 100644 |
| --- a/native/ios/project.yml |
| +++ b/native/ios/project.yml |
| @@ -8,7 +8,7 @@ packages: |
| path: ../apple |
| RastrilloNative: |
| url: https://amadan.net/rastrillo/native |
| - revision: b6a4067e39efd641fd5fa149cc666fee47bdb9b5 |
| + revision: c989034602fd540531e845b0934864575be11b3e |
| settings: |
| base: |
| SWIFT_VERSION: '5.0' |
diff --git a/native/mac-updates.json b/native/mac-updates.json| index a8e4ad0..b1aeab8 100644 |
| --- a/native/mac-updates.json |
| +++ b/native/mac-updates.json |
| @@ -3,5 +3,11 @@ |
| "feed_url": "https://raw.amadan.net/oficina/native-releases/main/memoria/appcast.xml", |
| "public_ed_key": "/FxO7cZnM7P5c9ZrUPUJvpCnR65sNmrzte+I5vHarE8=", |
| "keychain_account": "oficina", |
| - "url_schemes": ["works.oficina.memoria"] |
| + "url_schemes": [ |
| + "works.oficina.memoria" |
| + ], |
| + "localizations": [ |
| + "en" |
| + ], |
| + "install": "automatic" |
| } |
diff --git a/native/macos/Info.plist b/native/macos/Info.plist| index a923dae..ce20b3e 100644 |
| --- a/native/macos/Info.plist |
| +++ b/native/macos/Info.plist |
| @@ -14,6 +14,10 @@ |
| <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
| <key>CFBundleInfoDictionaryVersion</key> |
| <string>6.0</string> |
| + <key>CFBundleLocalizations</key> |
| + <array> |
| + <string>en</string> |
| + </array> |
| <key>CFBundleName</key> |
| <string>Memoria</string> |
| <key>CFBundlePackageType</key> |
diff --git a/native/macos/MemoriaMacStore.xcodeproj/project.pbxproj b/native/macos/MemoriaMacStore.xcodeproj/project.pbxproj| index 943b9e2..416b7bc 100644 |
| --- a/native/macos/MemoriaMacStore.xcodeproj/project.pbxproj |
| +++ b/native/macos/MemoriaMacStore.xcodeproj/project.pbxproj |
| @@ -368,7 +368,7 @@ |
| repositoryURL = "https://amadan.net/rastrillo/native"; |
| requirement = { |
| kind = revision; |
| - revision = b6a4067e39efd641fd5fa149cc666fee47bdb9b5; |
| + revision = c989034602fd540531e845b0934864575be11b3e; |
| }; |
| }; |
| /* End XCRemoteSwiftPackageReference section */ |
diff --git a/native/macos/project.yml b/native/macos/project.yml| index 7718604..b7a640d 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: b6a4067e39efd641fd5fa149cc666fee47bdb9b5 |
| + revision: c989034602fd540531e845b0934864575be11b3e |
| settings: |
| base: |
| SWIFT_VERSION: '5.0' |
| @@ -37,6 +37,8 @@ targets: |
| properties: |
| CFBundleDisplayName: Oficina Memoria |
| CFBundleName: Memoria |
| + CFBundleLocalizations: |
| + - en |
| CFBundleShortVersionString: $(MARKETING_VERSION) |
| CFBundleVersion: $(CURRENT_PROJECT_VERSION) |
| CFBundleIconFile: AppIcon |
diff --git a/native/scripts/build-mac.sh b/native/scripts/build-mac.sh| index 8cc6b26..8963c07 100755 |
| --- a/native/scripts/build-mac.sh |
| +++ b/native/scripts/build-mac.sh |
| @@ -3,4 +3,6 @@ set -eu |
| cd "$(dirname "$0")/.." |
| swift package --package-path apple resolve |
| shared_native="${OFICINA_NATIVE_PACKAGE_PATH:-apple/.build/checkouts/native}" |
| -python3 "$shared_native/tools/bundle-mac.py" . Memoria "$@" |
| +# A plain dev build (no --updates-config) registers the sign-in scheme too, so |
| +# the browser's "Return to Memoria" link works without a live update feed. |
| +python3 "$shared_native/tools/bundle-mac.py" . Memoria --url-scheme works.oficina.memoria "$@" |