Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
chore(tauri): update ios version numbers (#4395)
Peter Chinmanc4b30379f2e6
diff --git a/js/app/justfile b/js/app/justfileindex 9b84c7d1ef..19c3faf710 100644--- a/js/app/justfile+++ b/js/app/justfile@@ -1,15 +1,21 @@# iOS: dev-facing, for testing in Simulator-ios-dev: ios-prepare-tauri-api+ios-dev: ios-preparecd tauri/src-tauri && cargo tauri ios dev --open -- --no-default-features# iOS: prod-facing build, with bundle auto-update turned off, for testing locally on actual iPhone-ios-build-no-update: ios-prepare-tauri-api+ios-build-no-update: ios-preparecd tauri/src-tauri && cargo tauri ios build --open -- --no-default-features# iOS: build for release-ios-build: ios-prepare-tauri-api+ios-build: ios-preparecd tauri/src-tauri && cargo tauri ios build --open+# iOS generated project prep. Keep native bundle metadata in sync with+# tauri.ios.conf.json, then prepare ignored local Swift dependencies.+ios-prepare:+ bun scripts/sync-ios-bundle-metadata.mjs+ bun scripts/prepare-tauri-ios-api.mjs+# Xcode resolves SwiftPM packages before Tauri's Rust build script can generate# local plugin Swift dependencies, so prepare the ignored Tauri iOS API first.ios-prepare-tauri-api:diff --git a/js/app/scripts/sync-ios-bundle-metadata.mjs b/js/app/scripts/sync-ios-bundle-metadata.mjsnew file mode 100644index 0000000000..9a7c480fcf--- /dev/null+++ b/js/app/scripts/sync-ios-bundle-metadata.mjs@@ -0,0 +1,96 @@+import { execFileSync } from "node:child_process";+import { existsSync, readFileSync, writeFileSync } from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";++const appDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");+const srcTauriDir = path.join(appDir, "tauri", "src-tauri");+const iosConfigPath = path.join(srcTauriDir, "tauri.ios.conf.json");+const generatedAppleDir = path.join(srcTauriDir, "gen", "apple");++const iosConfig = JSON.parse(readFileSync(iosConfigPath, "utf8"));+const marketingVersion = iosConfig.version;+const bundleVersion = iosConfig.bundle?.iOS?.bundleVersion;++if (typeof marketingVersion !== "string") {+ console.error(`${path.relative(appDir, iosConfigPath)} must define a string "version".`);+ process.exit(1);+}++if (!/^\d+\.\d+\.\d+$/.test(marketingVersion)) {+ console.error(+ `"${marketingVersion}" is not a valid iOS CFBundleShortVersionString. Use exactly three dot-separated integers, e.g. "2.0.6".`,+ );+ process.exit(1);+}++if (typeof bundleVersion !== "string") {+ console.error(+ `${path.relative(appDir, iosConfigPath)} must define a string "bundle.iOS.bundleVersion".`,+ );+ process.exit(1);+}++if (!/^\d+(?:\.\d+)*$/.test(bundleVersion)) {+ console.error(+ `"${bundleVersion}" is not a valid iOS CFBundleVersion. Use period-separated integers, e.g. "100" or "2.0.6.100".`,+ );+ process.exit(1);+}++const plistPaths = [+ path.join(generatedAppleDir, "app_iOS", "Info.plist"),+ path.join(generatedAppleDir, "ShareExtension", "Info.plist"),+ path.join(generatedAppleDir, "NotificationServiceExtension", "Info.plist"),+];++const plistValues = [+ ["CFBundleShortVersionString", marketingVersion],+ ["CFBundleVersion", bundleVersion],+];++for (const plistPath of plistPaths) {+ if (!existsSync(plistPath)) {+ continue;+ }++ for (const [key, value] of plistValues) {+ const currentValue = execFileSync(+ "/usr/libexec/PlistBuddy",+ ["-c", `Print :${key}`, plistPath],+ { encoding: "utf8", stdio: ["ignore", "pipe", "inherit"] },+ ).trim();++ if (currentValue === value) {+ continue;+ }++ execFileSync(+ "/usr/libexec/PlistBuddy",+ ["-c", `Set :${key} ${value}`, plistPath],+ { stdio: ["ignore", "ignore", "inherit"] },+ );+ }+}++const projectYmlPath = path.join(generatedAppleDir, "project.yml");+if (existsSync(projectYmlPath)) {+ const projectYml = readFileSync(projectYmlPath, "utf8");+ const updatedProjectYml = projectYml+ .replace(+ /^(\s*CFBundleShortVersionString:\s*).+$/gm,+ `$1${marketingVersion}`,+ )+ .replace(+ /^(\s*CFBundleVersion:\s*).+$/gm,+ `$1${JSON.stringify(bundleVersion)}`,+ );++ if (updatedProjectYml !== projectYml) {+ writeFileSync(projectYmlPath, updatedProjectYml);+ }+}++console.log(+ `Synced iOS bundle metadata to CFBundleShortVersionString=${marketingVersion}, CFBundleVersion=${bundleVersion}`,+);diff --git a/js/app/tauri/src-tauri/gen/apple/NotificationServiceExtension/Info.plist b/js/app/tauri/src-tauri/gen/apple/NotificationServiceExtension/Info.plistindex cd8d14eb72..e15072a93d 100644--- a/js/app/tauri/src-tauri/gen/apple/NotificationServiceExtension/Info.plist+++ b/js/app/tauri/src-tauri/gen/apple/NotificationServiceExtension/Info.plist@@ -17,9 +17,9 @@<key>CFBundlePackageType</key><string>XPC!</string><key>CFBundleShortVersionString</key>- <string>$(MARKETING_VERSION)</string>+ <string>2.0.6</string><key>CFBundleVersion</key>- <string>171</string>+ <string>178</string><key>NSExtension</key><dict><key>NSExtensionPointIdentifier</key>diff --git a/js/app/tauri/src-tauri/gen/apple/ShareExtension/Info.plist b/js/app/tauri/src-tauri/gen/apple/ShareExtension/Info.plistindex ba09e635ab..b67246564f 100644--- a/js/app/tauri/src-tauri/gen/apple/ShareExtension/Info.plist+++ b/js/app/tauri/src-tauri/gen/apple/ShareExtension/Info.plist@@ -17,9 +17,9 @@<key>CFBundlePackageType</key><string>XPC!</string><key>CFBundleShortVersionString</key>- <string>2.0.5</string>+ <string>2.0.6</string><key>CFBundleVersion</key>- <string>171</string>+ <string>178</string><key>LSApplicationQueriesSchemes</key><array><string>macro</string>diff --git a/js/app/tauri/src-tauri/gen/apple/app_iOS/Info.plist b/js/app/tauri/src-tauri/gen/apple/app_iOS/Info.plistindex d32f084352..e91e04e409 100644--- a/js/app/tauri/src-tauri/gen/apple/app_iOS/Info.plist+++ b/js/app/tauri/src-tauri/gen/apple/app_iOS/Info.plist@@ -15,7 +15,7 @@<key>CFBundlePackageType</key><string>APPL</string><key>CFBundleShortVersionString</key>- <string>2.5.0</string>+ <string>2.0.6</string><key>CFBundleURLTypes</key><array><dict>@@ -28,7 +28,7 @@</dict></array><key>CFBundleVersion</key>- <string>171</string>+ <string>178</string><key>LSApplicationQueriesSchemes</key><array><string>macro</string>diff --git a/js/app/tauri/src-tauri/gen/apple/project.yml b/js/app/tauri/src-tauri/gen/apple/project.ymlindex 71dca6d8c6..b48d1b69d8 100644--- a/js/app/tauri/src-tauri/gen/apple/project.yml+++ b/js/app/tauri/src-tauri/gen/apple/project.yml@@ -58,8 +58,8 @@ targets:- UIInterfaceOrientationPortraitUpsideDown- UIInterfaceOrientationLandscapeLeft- UIInterfaceOrientationLandscapeRight- CFBundleShortVersionString: 2.0.5- CFBundleVersion: "171"+ CFBundleShortVersionString: 2.0.6+ CFBundleVersion: "178"CFBundleURLTypes:- CFBundleURLSchemes:- macro@@ -136,8 +136,8 @@ targets:path: ShareExtension/Info.plistproperties:CFBundleDisplayName: Share to Macro- CFBundleShortVersionString: 2.0.5- CFBundleVersion: "171"+ CFBundleShortVersionString: 2.0.6+ CFBundleVersion: "178"LSApplicationQueriesSchemes:- macroNSExtension:@@ -171,8 +171,8 @@ targets:path: NotificationServiceExtension/Info.plistproperties:CFBundleDisplayName: NotificationServiceExtension- CFBundleShortVersionString: $(MARKETING_VERSION)- CFBundleVersion: "171"+ CFBundleShortVersionString: 2.0.6+ CFBundleVersion: "178"NSExtension:NSExtensionPointIdentifier: com.apple.usernotifications.serviceNSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).NotificationServicediff --git a/js/app/tauri/src-tauri/tauri.conf.json b/js/app/tauri/src-tauri/tauri.conf.jsonindex 4526ac5b70..2fda1f1a6d 100644--- a/js/app/tauri/src-tauri/tauri.conf.json+++ b/js/app/tauri/src-tauri/tauri.conf.json@@ -52,8 +52,7 @@"icons/icon.ico"],"iOS": {- "minimumSystemVersion": "14.0",- "bundleVersion": "100"+ "minimumSystemVersion": "14.0"}},"plugins": {@@ -91,4 +90,4 @@}}}-}\ No newline at end of file+}diff --git a/js/app/tauri/src-tauri/tauri.ios.conf.json b/js/app/tauri/src-tauri/tauri.ios.conf.jsonnew file mode 100644index 0000000000..952fefeb68--- /dev/null+++ b/js/app/tauri/src-tauri/tauri.ios.conf.json@@ -0,0 +1,8 @@+{+ "version": "2.0.6",+ "bundle": {+ "iOS": {+ "bundleVersion": "178"+ }+ }+}