Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.
Rust apple-notesapple-reminderscloudkitcrdtdesktop-appicloudicloud-calendaricloud-driveicloud-notesicloud-photosiphonelinuxlinux-desktoplocal-firstoffline-firstprivacyrusttauritauri-appwindows
The app no longer needs a dev server to run
Yashwanth Kamireddib6ca64de3a6a
diff --git a/.uiverify/crash.mjs b/.uiverify/crash.mjsnew file mode 100644index 0000000..7c1c2b8--- /dev/null+++ b/.uiverify/crash.mjs@@ -0,0 +1,39 @@+// Load exactly what the app loads (the dev server) and surface any error that kills render.+import { chromium } from "playwright";++const b = await chromium.launch();+const ctx = await b.newContext({ viewport: { width: 1100, height: 800 } });+await ctx.addInitScript(() => {+ window.__TAURI_INTERNALS__ = {+ transformCallback: (c) => c,+ invoke: async (cmd) => {+ switch (cmd) {+ case "auth_status": return { hasStoredSession: true, signedIn: true };+ case "auth_resume": return true;+ case "account_services": return ["calendar", "reminders", "notes", "contacts", "drivews", "photos"];+ case "calendar_events": case "calendar_list": case "reminders_due_between": return [];+ case "calendar_last_synced": case "reminders_last_synced": case "notes_last_synced":+ case "contacts_last_synced": return Math.floor(Date.now() / 1000);+ case "reminder_lists": case "reminders_in": case "reminders_smart":+ case "note_folders": case "notes_in": case "contacts_list": case "drive_children": return [];+ case "calendar_sync": return { calendars: 0, events: 0 };+ case "reminders_sync": case "notes_sync": return [0, 0];+ case "contacts_sync": case "drive_sync_folder": return 0;+ default: return null;+ }+ },+ };+});+const p = await ctx.newPage();+const errors = [];+p.on("pageerror", (e) => errors.push(`pageerror: ${e.message}`));+p.on("console", (m) => m.type() === "error" && errors.push(`console: ${m.text()}`));++await p.goto(process.env.TARGET ?? "http://localhost:5273", { waitUntil: "networkidle" });+await p.waitForTimeout(1200);++const rendered = (await p.innerText("#root")).trim();+console.log("rendered:", rendered ? `${rendered.slice(0, 90).replace(/\n/g, " ")}…` : "NOTHING — blank");+console.log(errors.length ? "errors:\n " + errors.join("\n ") : "no errors");+await b.close();+process.exitCode = rendered ? 0 : 1;diff --git a/check.sh b/check.shindex a4e1eb1..a640abb 100755--- a/check.sh+++ b/check.sh@@ -11,6 +11,10 @@ step() {if "$@"; then printf '\033[32mok\033[0m\n'; else printf '\033[31mFAILED\033[0m\n'; fail=1; fi}+# The app must serve its own bundle. Pointing it at a dev server made it depend on `npm run+# dev` being up and healthy, which produced both a connection error and a blank window.+step "app is standalone" bash -c '! grep -q devUrl src-tauri/tauri.conf.json'+step "rust format" cargo fmt --all -- --checkstep "rust lint" cargo clippy --workspace --all-targets -- -D warningsstep "rust tests" cargo test --workspace --quietdiff --git a/probe/src/main.rs b/probe/src/main.rsindex 02872a2..0bc71f3 100644--- a/probe/src/main.rs+++ b/probe/src/main.rs@@ -936,6 +936,53 @@ async fn main() -> Result<()> {}}+ // ---- how does Apple order a reminder list? ----------------------------------+ println!("\n\x1b[1m── Reminder list ordering ──\x1b[0m");+ if let Some(ck) = session.service_url("ckdatabasews") {+ let zc = quince_icloud::cloudkit::ZoneClient::new(+ client.http(),+ &ck,+ "com.apple.reminders",+ client.service_params(),+ );+ if let Ok((records, _)) = zc.all_records("Reminders", None).await {+ for rec in records+ .iter()+ .filter(|r| r.get("recordType").and_then(|t| t.as_str()) == Some("List"))+ .take(3)+ {+ let name = quince_icloud::cloudkit::field::string(rec, "Name")+ .unwrap_or_else(|| "?".into());+ let style = rec.pointer("/fields/SortingStyle/value");+ let ids = rec+ .pointer("/fields/ReminderIDs/value")+ .and_then(|v| v.as_array());+ println!(+ " {name:<16} SortingStyle={:<6} ReminderIDs={}",+ style.map_or("none".into(), std::string::ToString::to_string),+ ids.map_or("none".to_string(), |a| format!("[{} ids]", a.len()))+ );+ if let Some(list) = ids {+ for id in list.iter().take(2) {+ println!(" {}", id.as_str().unwrap_or("?"));+ }+ }+ }+ // And the sort hint record, whatever it carries.+ for rec in records+ .iter()+ .filter(|r| r.get("recordType").and_then(|t| t.as_str()) == Some("ManualSortHint"))+ {+ let fields: Vec<String> = rec+ .get("fields")+ .and_then(|f| f.as_object())+ .map(|o| o.keys().cloned().collect())+ .unwrap_or_default();+ println!(" ManualSortHint fields: {}", fields.join(", "));+ }+ }+ }+// ---- CloudKit containers ----------------------------------------------------// Apple's legacy /rd and /ca endpoints answer with a placeholder once data has been// upgraded to the modern format. The real records live in CloudKit, so find out whichdiff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 1b14895..ee4337e 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -5,8 +5,6 @@"identifier": "dev.quince.client","build": {"frontendDist": "../dist",- "devUrl": "http://localhost:5273",- "beforeDevCommand": "npm run dev","beforeBuildCommand": "npm run build"},"app": {@@ -22,12 +20,20 @@"theme": null}],- "security": { "csp": null }+ "security": {+ "csp": null+ }},"bundle": {"active": true,- "targets": ["deb", "rpm", "appimage"],- "icon": ["icons/icon.png"],+ "targets": [+ "deb",+ "rpm",+ "appimage"+ ],+ "icon": [+ "icons/icon.png"+ ],"category": "Utility","shortDescription": "Your iCloud, on this computer","longDescription": "Quince keeps your iCloud calendar, reminders, photos and notes on your own machine, so they open instantly and work offline. Independent project, not affiliated with Apple."