@legendapp/spark 0.0.1-next.7 → 0.0.1-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/package.json +8 -8
  2. package/schema.json +9 -0
  3. package/skills/spark/SKILL.md +1 -1
  4. package/skills/spark/UPGRADING.md +21 -0
  5. package/vendor/node_modules/@legendapp/spark-ai/package.json +3 -3
  6. package/vendor/node_modules/@legendapp/spark-audio/package.json +2 -2
  7. package/vendor/node_modules/@legendapp/spark-auth-session/package.json +3 -3
  8. package/vendor/node_modules/@legendapp/spark-cli/dist/add-desktop.js +1 -1
  9. package/vendor/node_modules/@legendapp/spark-cli/dist/build.js +16 -4
  10. package/vendor/node_modules/@legendapp/spark-cli/dist/create.js +16 -4
  11. package/vendor/node_modules/@legendapp/spark-cli/dist/init-template.cjs +2 -1
  12. package/vendor/node_modules/@legendapp/spark-cli/dist/macos-release.js +4 -0
  13. package/vendor/node_modules/@legendapp/spark-cli/dist/project.js +10 -4
  14. package/vendor/node_modules/@legendapp/spark-cli/dist/release-driver.js +35 -0
  15. package/vendor/node_modules/@legendapp/spark-cli/dist/release.json +18 -18
  16. package/vendor/node_modules/@legendapp/spark-cli/dist/updates.js +18 -8
  17. package/vendor/node_modules/@legendapp/spark-cli/dist/windows.js +1 -1
  18. package/vendor/node_modules/@legendapp/spark-cli/package.json +4 -4
  19. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/app.json +5 -1
  20. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/gitignore +2 -1
  21. package/vendor/node_modules/@legendapp/spark-cli/templates/blank-typescript/package.json +7 -7
  22. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/app.json +5 -1
  23. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/gitignore +2 -1
  24. package/vendor/node_modules/@legendapp/spark-cli/templates/universal/package.json +8 -8
  25. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/app.json +5 -1
  26. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/gitignore +2 -1
  27. package/vendor/node_modules/@legendapp/spark-cli/templates/windows/package.json +8 -8
  28. package/vendor/node_modules/@legendapp/spark-clipboard/package.json +2 -2
  29. package/vendor/node_modules/@legendapp/spark-codex/cpp/HybridCodexAppServer.mm +88 -76
  30. package/vendor/node_modules/@legendapp/spark-codex/package.json +2 -2
  31. package/vendor/node_modules/@legendapp/spark-commands/package.json +5 -5
  32. package/vendor/node_modules/@legendapp/spark-context-menu/package.json +2 -2
  33. package/vendor/node_modules/@legendapp/spark-desktop-app/RNDesktopApp.podspec +12 -1
  34. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/RNDesktopApp.mm +8 -1
  35. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkDesktop.h +8 -0
  36. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkDesktop.mm +84 -21
  37. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkInstance.h +27 -0
  38. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkInstance.mm +207 -0
  39. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkTestDriver.h +44 -0
  40. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkTestDriver.mm +349 -0
  41. package/vendor/node_modules/@legendapp/spark-desktop-app/macos/SparkWindow.mm +3 -1
  42. package/vendor/node_modules/@legendapp/spark-desktop-app/package.json +1 -1
  43. package/vendor/node_modules/@legendapp/spark-desktop-app/src/api.ts +39 -6
  44. package/vendor/node_modules/@legendapp/spark-desktop-app/src/contracts/menu.ts +21 -7
  45. package/vendor/node_modules/@legendapp/spark-desktop-config/accessibility-state.cjs +50 -0
  46. package/vendor/node_modules/@legendapp/spark-desktop-config/app.plugin.cjs +9 -1
  47. package/vendor/node_modules/@legendapp/spark-desktop-config/autolinking.cjs +8 -1
  48. package/vendor/node_modules/@legendapp/spark-desktop-config/config.cjs +1 -1
  49. package/vendor/node_modules/@legendapp/spark-desktop-config/config.d.cts +7 -1
  50. package/vendor/node_modules/@legendapp/spark-desktop-config/package.json +4 -4
  51. package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-scroll-view.cjs +144 -0
  52. package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-text-alignment.cjs +60 -0
  53. package/vendor/node_modules/@legendapp/spark-desktop-config/rtl-text-input-alignment.cjs +112 -0
  54. package/vendor/node_modules/@legendapp/spark-desktop-config/schema.json +9 -0
  55. package/vendor/node_modules/@legendapp/spark-desktop-config/test-driver.cjs +11 -0
  56. package/vendor/node_modules/@legendapp/spark-desktop-config/test-driver.d.cts +2 -0
  57. package/vendor/node_modules/@legendapp/spark-desktop-config/text-input-accessibility.cjs +47 -0
  58. package/vendor/node_modules/@legendapp/spark-desktop-config/updates.cjs +4 -2
  59. package/vendor/node_modules/@legendapp/spark-desktop-config/validation.cjs +2 -1
  60. package/vendor/node_modules/@legendapp/spark-desktop-config/windows.plugin.cjs +1 -1
  61. package/vendor/node_modules/@legendapp/spark-desktop-host/AppDelegate.mm +18 -6
  62. package/vendor/node_modules/@legendapp/spark-desktop-host/package.json +2 -2
  63. package/vendor/node_modules/@legendapp/spark-desktop-host/windows/application.inc +61 -15
  64. package/vendor/node_modules/@legendapp/spark-desktop-host/windows/launch.inc +67 -0
  65. package/vendor/node_modules/@legendapp/spark-desktop-links/package.json +2 -2
  66. package/vendor/node_modules/@legendapp/spark-desktop-shortcuts/package.json +2 -2
  67. package/vendor/node_modules/@legendapp/spark-desktop-windows/RNDesktopWindows.podspec +3 -0
  68. package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/RNDesktopWindows.mm +5 -2
  69. package/vendor/node_modules/@legendapp/spark-desktop-windows/macos/window-manager/RNWindowManager.mm +22 -3
  70. package/vendor/node_modules/@legendapp/spark-desktop-windows/package.json +3 -3
  71. package/vendor/node_modules/@legendapp/spark-documents/package.json +7 -7
  72. package/vendor/node_modules/@legendapp/spark-drag-drop/package.json +2 -2
  73. package/vendor/node_modules/@legendapp/spark-file-dialog/RNFileDialog.podspec +1 -0
  74. package/vendor/node_modules/@legendapp/spark-file-dialog/ios/RNFileDialog.mm +153 -64
  75. package/vendor/node_modules/@legendapp/spark-file-dialog/package.json +2 -2
  76. package/vendor/node_modules/@legendapp/spark-file-dialog/src/index.ts +19 -7
  77. package/vendor/node_modules/@legendapp/spark-file-dialog/src/native.ts +5 -1
  78. package/vendor/node_modules/@legendapp/spark-file-dialog/src/options.ts +42 -4
  79. package/vendor/node_modules/@legendapp/spark-file-dialog/src/types.ts +18 -2
  80. package/vendor/node_modules/@legendapp/spark-file-system/package.json +2 -2
  81. package/vendor/node_modules/@legendapp/spark-global-shortcuts/package.json +2 -2
  82. package/vendor/node_modules/@legendapp/spark-html/package.json +2 -2
  83. package/vendor/node_modules/@legendapp/spark-markdown/package.json +2 -2
  84. package/vendor/node_modules/@legendapp/spark-markdown/src/Markdown.tsx +2 -1
  85. package/vendor/node_modules/@legendapp/spark-message-dialog/macos/RNDesktopMessageDialog.mm +113 -12
  86. package/vendor/node_modules/@legendapp/spark-message-dialog/package.json +2 -2
  87. package/vendor/node_modules/@legendapp/spark-message-dialog/src/index.ts +110 -14
  88. package/vendor/node_modules/@legendapp/spark-native-menu/ios/RNNativeMenu.mm +116 -8
  89. package/vendor/node_modules/@legendapp/spark-native-menu/package.json +2 -2
  90. package/vendor/node_modules/@legendapp/spark-native-menu/src/api.ts +63 -18
  91. package/vendor/node_modules/@legendapp/spark-native-menu/src/hooks.ts +9 -3
  92. package/vendor/node_modules/@legendapp/spark-notifications/package.json +2 -2
  93. package/vendor/node_modules/@legendapp/spark-processes/package.json +2 -2
  94. package/vendor/node_modules/@legendapp/spark-rich-text/package.json +2 -2
  95. package/vendor/node_modules/@legendapp/spark-secure-storage/package.json +2 -2
  96. package/vendor/node_modules/@legendapp/spark-settings/package.json +3 -3
  97. package/vendor/node_modules/@legendapp/spark-settings-ui/package.json +4 -4
  98. package/vendor/node_modules/@legendapp/spark-settings-ui/src/index.tsx +5 -2
  99. package/vendor/node_modules/@legendapp/spark-sqlite/package.json +3 -3
  100. package/vendor/node_modules/@legendapp/spark-system/macos/RNDesktopSystem.mm +13 -3
  101. package/vendor/node_modules/@legendapp/spark-system/macos/SparkAppearancePreferences.h +9 -0
  102. package/vendor/node_modules/@legendapp/spark-system/macos/SparkAppearancePreferences.mm +31 -0
  103. package/vendor/node_modules/@legendapp/spark-system/macos/SparkDockTile.h +24 -0
  104. package/vendor/node_modules/@legendapp/spark-system/macos/SparkDockTile.mm +101 -0
  105. package/vendor/node_modules/@legendapp/spark-system/package.json +2 -2
  106. package/vendor/node_modules/@legendapp/spark-system/src/index.ts +73 -7
  107. package/vendor/node_modules/@legendapp/spark-tray/package.json +2 -2
  108. package/vendor/node_modules/@legendapp/spark-ui/macos/RNSparkButton.mm +2 -0
  109. package/vendor/node_modules/@legendapp/spark-ui/macos/RNSparkLayoutDirection.h +17 -0
  110. package/vendor/node_modules/@legendapp/spark-ui/macos/RNSparkTextInput.mm +6 -1
  111. package/vendor/node_modules/@legendapp/spark-ui/macos/appkit-split-view/RNSidebarSplitViewComponent.mm +55 -8
  112. package/vendor/node_modules/@legendapp/spark-ui/macos/glass-effect-view/RNGlassEffectView.mm +11 -7
  113. package/vendor/node_modules/@legendapp/spark-ui/macos/native-select/RNNativeSegmentedControl.mm +4 -0
  114. package/vendor/node_modules/@legendapp/spark-ui/macos/native-select/RNNativeSelect.mm +4 -0
  115. package/vendor/node_modules/@legendapp/spark-ui/macos/sf-symbol/RNSFSymbol.mm +4 -0
  116. package/vendor/node_modules/@legendapp/spark-ui/macos/sidebar/RNSidebar.mm +77 -14
  117. package/vendor/node_modules/@legendapp/spark-ui/macos/swipe-actions/RNSwipeActions.mm +31 -7
  118. package/vendor/node_modules/@legendapp/spark-ui/macos/text-input-search/RNTextInputSearch.mm +25 -1
  119. package/vendor/node_modules/@legendapp/spark-ui/package.json +2 -2
  120. package/vendor/node_modules/@legendapp/spark-ui/src/sidebar/SidebarNativeComponent.ts +5 -0
  121. package/vendor/node_modules/@legendapp/spark-ui/src/sidebar/index.tsx +19 -8
  122. package/vendor/node_modules/@legendapp/spark-updates/macos/RNDesktopUpdates.mm +25 -13
  123. package/vendor/node_modules/@legendapp/spark-updates/macos/SparkUpdateState.h +39 -0
  124. package/vendor/node_modules/@legendapp/spark-updates/package.json +2 -2
  125. package/vendor/node_modules/@legendapp/spark-updates/src/index.ts +45 -9
  126. package/vendor/node_modules/@legendapp/spark-webview/package.json +2 -2
  127. package/vendor/node_modules/@legendapp/spark-window-options/package.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark",
3
- "version": "0.0.1-next.7",
3
+ "version": "0.0.1-next.8",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -89,7 +89,7 @@
89
89
  "dependencies": {
90
90
  "base64-js": "1.5.1",
91
91
  "ws": "8.21.0",
92
- "expo-desktop": "1.0.0",
92
+ "expo-desktop": "1.0.6",
93
93
  "npm": "11.21.1",
94
94
  "typescript": "5.9.3",
95
95
  "cross-spawn": "7.0.6",
@@ -97,7 +97,7 @@
97
97
  "yaml": "2.9.1",
98
98
  "react-native-nitro-modules": "0.37.0",
99
99
  "@legendapp/state": "^3.0.0-beta.42",
100
- "expo-desktop-config-plugins": "1.2.0",
100
+ "expo-desktop-config-plugins": "1.3.2",
101
101
  "@expo/config-plugins": "54.0.5",
102
102
  "@expo/config-types": "54.0.10",
103
103
  "@react-native-runtimes/core": "0.1.0-alpha.2",
@@ -176,26 +176,26 @@
176
176
  "spark": {
177
177
  "nativePatchRequirements": {
178
178
  "schema": 1,
179
- "frameworkVersion": "0.0.1-next.7",
179
+ "frameworkVersion": "0.0.1-next.8",
180
180
  "packages": {
181
181
  "@react-native-runtimes/core": {
182
182
  "version": "0.1.0-alpha.2",
183
- "patchHash": "985164a87eb04010a8d849f5b0ca22a76548dc3f73a64a6183683ca90932ec2c",
183
+ "patchHash": "4df45cb5ea7454a2efe030b9516125a09526a8ecba851978911a369dc04deed9",
184
184
  "upstreamRevision": "58710c25c6e505dcc1292ee54d855408a6f7a42d"
185
185
  },
186
186
  "react-native-nitro-modules": {
187
187
  "version": "0.37.0",
188
- "patchHash": "e6690996301b00fbfb1a5e5ac61bafaa53c53b1f292afbcaad2a005c0f1015ad",
188
+ "patchHash": "ed6a1b06388b53b8d6bf04506faec02edb455032a3595db40f0f2cdfa3ed9564",
189
189
  "upstreamIntegrity": "sha512-ULS2CBZcdwGw5d4Y35EV/tbCOsNsQOnQ9LC9CehMhDNm5c90lwF/LxRamzKuFpjI547G7teTQgD0peqYSGnP9g=="
190
190
  },
191
191
  "@op-engineering/op-sqlite": {
192
192
  "version": "18.2.1",
193
- "patchHash": "ed2e06655ff679ed39c1674852a2fe02da6e93502cf0442a993f8e97cfcd92f5",
193
+ "patchHash": "d9ac2b3aaea926aac4c70804e6d687afc10f851d9addd2c23e77b4f62a211842",
194
194
  "upstreamIntegrity": "sha512-atVOtXyFzO0e454eVS27AMwRs515URCKrkvLLG+mGKcyiF5UPfC53oukpNp2UmVzlLebyTEXNkTYs6n0dVGd0g=="
195
195
  },
196
196
  "react-native-webview": {
197
197
  "version": "16.0.0",
198
- "patchHash": "79707d6b12a131a9cb92088082c8b50d4d1b459224bc963814935fb6c55e0ba6",
198
+ "patchHash": "5fc68e6431c48c6cf1cc15db6ac84cdfe50a73c5e99b405eebbe9aabffc71a2b",
199
199
  "upstreamIntegrity": "sha512-KIg5Yhy04lQfHdXC1JQPM+0kftMfPnH6AqDH7v6YskQ9kzfUacooofOFRmbaZHASq/0WY87Fx0peiFETFjOcCg=="
200
200
  },
201
201
  "expo-audio": {
package/schema.json CHANGED
@@ -188,6 +188,10 @@
188
188
  "infoPlist": {
189
189
  "type": "object"
190
190
  },
191
+ "testDriverInRelease": {
192
+ "type": "boolean",
193
+ "description": "Compile the in-app test driver into release builds too; Debug builds always have it. For apps the release gate drives: keep it off for apps you distribute (docs/test-driver.md#builds)."
194
+ },
191
195
  "lifecycle": {
192
196
  "type": "object",
193
197
  "additionalProperties": false,
@@ -334,6 +338,11 @@
334
338
  "publicKey": {
335
339
  "type": "string",
336
340
  "pattern": "^[A-Za-z0-9+/]{43}=$"
341
+ },
342
+ "maximumDeltas": {
343
+ "type": "integer",
344
+ "minimum": 0,
345
+ "maximum": 10
337
346
  }
338
347
  },
339
348
  "additionalProperties": false
@@ -51,6 +51,6 @@ After installation, read this skill and `UPGRADING.md` from the **new installed
51
51
  - Missing `pod` / `xcodebuild`: install the documented native prerequisites, then retry. Spark does not install Xcode or accept licenses.
52
52
  - Pin drift, stale Expo terminal patch, or pending migrations: inspect `spark doctor`, preview `spark upgrade --dry-run`, then upgrade. If install fails, fix the manager error and rerun upgrade; the migration version is not advanced by a failed install.
53
53
  - Malformed `spark:skill` markers: repair the paired marked section without removing user instructions, then rerun upgrade.
54
- - Build details live in `.spark/logs/` and `.spark/commands.jsonl`. Keep `.spark/`, generated native outputs, and dependency directories out of version control; commit source/configuration, AI pointer files, vendored release inputs, and the manager lockfile.
54
+ - Build details live in `.spark/logs/` and `.spark/commands.jsonl`. Keep `.spark/` (except `.spark/version`), generated native outputs, and dependency directories out of version control; commit source/configuration, AI pointer files, vendored release inputs, and the manager lockfile.
55
55
 
56
56
  See the maintained [development guide](https://github.com/LegendApp/legend-spark/blob/main/docs/development.md), [packaging guide](https://github.com/LegendApp/legend-spark/blob/main/docs/packaging.md), and [Expo integration guide](https://github.com/LegendApp/legend-spark/blob/main/docs/add-desktop.md). Use the installed CLI's `--help` and templates for version-specific behavior.
@@ -268,3 +268,24 @@ match the requested Spark version, it stops and prints the exact
268
268
  Publishing: releases now refuse to publish a creator that was not built from
269
269
  that release's artifacts or whose version differs from `@legendapp/spark`, so a
270
270
  broken creator like next.5's cannot ship again. Existing apps are unaffected.
271
+
272
+ ## 0.0.1-next.8
273
+
274
+ Breaking: no. No app source migration is required from next.7.
275
+
276
+ Creating apps: `create-spark` now works under Yarn 4 Plug'n'Play
277
+ (`yarn dlx @legendapp/create-spark MyApp --next`).
278
+
279
+ expo-desktop: Spark now pins the SDK 54 expo-desktop packages to their latest
280
+ patches (expo-desktop 1.0.6, config-plugins 1.3.2, prebuild-config 1.1.3,
281
+ metro-config 54.81.3). Fixes include relaunching while an old instance runs,
282
+ reusing a running Metro, and blank windows in iOS+macOS Debug apps. expo-desktop
283
+ now reads the macOS version and build number from `expo.macos`; Spark sets these
284
+ automatically from the app's version (and `macos.buildNumber`, else
285
+ `ios.buildNumber`, else "1"), so no app change is needed. Rebuild custom
286
+ runtimes (`spark build --dev`). Do not upgrade expo-desktop packages to SDK 55
287
+ tags.
288
+
289
+ Publishing: each release now publishes straight to its channel (stable ->
290
+ latest, preview -> next). Existing apps are unaffected.
291
+
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@legendapp/spark-ai",
3
- "version": "0.0.1-next.7",
3
+ "version": "0.0.1-next.8",
4
4
  "private": true,
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
7
7
  "dependencies": {
8
- "@legendapp/spark-desktop-app": "0.0.1-next.7",
9
- "@legendapp/spark-processes": "0.0.1-next.7"
8
+ "@legendapp/spark-desktop-app": "0.0.1-next.8",
9
+ "@legendapp/spark-processes": "0.0.1-next.8"
10
10
  },
11
11
  "peerDependencies": {
12
12
  "react": "^19.1.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-audio",
3
- "version": "0.0.1-next.7",
3
+ "version": "0.0.1-next.8",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -47,6 +47,6 @@
47
47
  },
48
48
  "private": true,
49
49
  "dependencies": {
50
- "@legendapp/spark-desktop-app": "0.0.1-next.7"
50
+ "@legendapp/spark-desktop-app": "0.0.1-next.8"
51
51
  }
52
52
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-auth-session",
3
- "version": "0.0.1-next.7",
3
+ "version": "0.0.1-next.8",
4
4
  "license": "MIT",
5
5
  "main": "src/index",
6
6
  "react-native": "src/index",
@@ -8,9 +8,9 @@
8
8
  "src"
9
9
  ],
10
10
  "dependencies": {
11
- "@legendapp/spark-desktop-links": "0.0.1-next.7",
11
+ "@legendapp/spark-desktop-links": "0.0.1-next.8",
12
12
  "base64-js": "1.5.1",
13
- "@legendapp/spark-desktop-app": "0.0.1-next.7"
13
+ "@legendapp/spark-desktop-app": "0.0.1-next.8"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react-native": "0.81.6",
@@ -193,7 +193,7 @@ export async function addDesktop(root, manifestFile) {
193
193
  files.set("desktop.config.json", JSON.stringify(desktop, null, 2) + "\n");
194
194
  const ignoreFile = path.join(root, ".gitignore");
195
195
  const ignore = existsSync(ignoreFile) ? readFileSync(ignoreFile, "utf8") : "";
196
- files.set(".gitignore", `${ignore}${ignore.endsWith("\n") || !ignore ? "" : "\n"}\n# spark generated desktop state\n/.spark/\n/macos/\n/windows/\n${release ? "\n# Spark verified release package inputs\n!/spark-packages/\n!/spark-packages/**\n" : ""}`);
196
+ files.set(".gitignore", `${ignore}${ignore.endsWith("\n") || !ignore ? "" : "\n"}\n# spark generated desktop state\n/.spark/*\n!/.spark/version\n/macos/\n/windows/\n${release ? "\n# Spark verified release package inputs\n!/spark-packages/\n!/spark-packages/**\n" : ""}`);
197
197
  // All conflicts are checked before the first write. The integration is kept
198
198
  // reviewable/retryable if the package manager fails; never regenerate mobile.
199
199
  if (release)
@@ -3,6 +3,7 @@ import { assertNativePatchPreflight } from "./native-patch-preflight.js";
3
3
  import { missingNativeFrameworks, preparationChanges, preserveMacOSPods } from "./native-preparation.js";
4
4
  import { prepareCustomizeArtifacts } from "./customize-artifacts.js";
5
5
  import { macOSReleaseSettings } from "./macos-release.js";
6
+ import { checkReleaseTestDriver } from "./release-driver.js";
6
7
  import { macOSXcodeArchitecture, projectPlatform } from "./platform.js";
7
8
  import { isUniversal, isExpoProject } from "@legendapp/spark-desktop-config/config.cjs";
8
9
  import { buildWindows } from "./windows.js";
@@ -59,8 +60,16 @@ export async function analyze(root) {
59
60
  (!source.includes("/node_modules/") || /["']@react-native-runtimes\/core["']/.test(readFileSync(source, "utf8")))) });
60
61
  await exportBundle({ SPARK_RUNTIME_SOURCES: runtimeSources });
61
62
  const map = readJson(path.join(dir, "app.map"));
62
- const sourceFile = (source) => source.includes("\0") ? undefined
63
- : [path.resolve(root, source), path.resolve(root, source.replace(/^\//, ""))].find(file => existsSync(file));
63
+ // Paths are absolute, or relative to the app or to Metro's server root, which can be a workspace above the app.
64
+ const sourceFile = (source) => {
65
+ if (source.includes("\0"))
66
+ return undefined;
67
+ for (let base = root;; base = path.dirname(base)) {
68
+ const file = [path.resolve(base, source), path.resolve(base, source.replace(/^\//, ""))].find(file => existsSync(file));
69
+ if (file || base === path.dirname(base))
70
+ return file;
71
+ }
72
+ };
64
73
  const used = new Set();
65
74
  for (const source of map.sources) {
66
75
  const file = sourceFile(source);
@@ -250,7 +259,7 @@ async function buildUnlocked(root, mode, force) {
250
259
  "--platform",
251
260
  "macos",
252
261
  "--template",
253
- "expo-desktop-template-bare-minimum@54.81.1",
262
+ "expo-desktop-template-bare-minimum@54.81.6",
254
263
  "--no-install",
255
264
  // Template renaming is not idempotent (HelloWorld becomes
256
265
  // LegendHelloWorld, then LegendLegendHelloWorld). Native projects
@@ -318,7 +327,8 @@ async function buildUnlocked(root, mode, force) {
318
327
  "8",
319
328
  "build",
320
329
  ], {
321
- env: { RCT_NEW_ARCH_ENABLED: "1", ENTRY_FILE: entryFile(root), ...(productionGraph ? { SPARK_RUNTIME_SOURCES: stateFile(root, "analysis/runtime-sources.json") } : {}) },
330
+ // Absolute, like analysis: Metro resolves a relative entry from its server root.
331
+ env: { RCT_NEW_ARCH_ENABLED: "1", ENTRY_FILE: path.resolve(root, entryFile(root)), ...(productionGraph ? { SPARK_RUNTIME_SOURCES: stateFile(root, "analysis/runtime-sources.json") } : {}) },
322
332
  label: `Building ${mode === "go" ? "Spark Runner" : mode} runtime (${configuration}, ${runtime.arch})`,
323
333
  });
324
334
  const products = path.join(derived, "Build", "Products", configuration);
@@ -333,6 +343,8 @@ async function buildUnlocked(root, mode, force) {
333
343
  if (mode === "release" &&
334
344
  !existsSync(path.join(destination, "Contents/Resources/main.jsbundle")))
335
345
  throw new Error("Standalone build is missing its JavaScript bundle.");
346
+ if (mode === "release")
347
+ checkReleaseTestDriver(destination, nativeConfig.macos?.testDriverInRelease === true);
336
348
  const result = {
337
349
  app: destination,
338
350
  // Older receipts may record a stale bundle selected from DerivedData.
@@ -4,13 +4,14 @@ import { initializeTemplate } from "./init-template.cjs";
4
4
  import { installedSparkVersion, migrateProject, refreshPointers } from "./migrations.cjs";
5
5
  import { creationManifest } from "./local.js";
6
6
  import { installedRelease, materializeReleasePackages, packageSources, verifyMaterializedReleasePackages } from "./release.js";
7
- import { packageManager, applyOverrides, localArchive } from "./package-manager.js";
7
+ import { packageManager, applyOverrides, localArchive, managerCommand } from "./package-manager.js";
8
+ import { run } from "./commands.js";
8
9
  import { packArchive } from "./pack-archive.js";
9
10
  import { nodeCommand, spawnProcess } from "./process.js";
10
11
  import { checkExpoDesktopNode } from "./expo-node.js";
11
12
  import { configureExample } from "./examples.js";
12
13
  import { hostPlatform } from "./platform.js";
13
- import { cpSync, existsSync, readFileSync, writeFileSync, mkdtempSync, rmSync } from "node:fs";
14
+ import { appendFileSync, cpSync, existsSync, readFileSync, writeFileSync, mkdtempSync, rmSync } from "node:fs";
14
15
  import path from "node:path";
15
16
  import os from "node:os";
16
17
  import { createInterface } from "node:readline";
@@ -18,6 +19,8 @@ import { Readable } from "node:stream";
18
19
  import { readJson } from "./json.js";
19
20
  // Resolve relative to the installed CLI so packed consumers use the same starter.
20
21
  const template = path.resolve(import.meta.dirname, "../templates/blank-typescript");
22
+ // Yarn PnP's fs patch rejects the async iterables Expo Desktop extracts templates with.
23
+ export const pnpWriteFile = `--import=data:text/javascript,${encodeURIComponent("import fs from 'node:fs'; const write = fs.promises.writeFile; fs.promises.writeFile = async (file, data, options) => write(file, data?.[Symbol.asyncIterator] ? Buffer.concat(await Array.fromAsync(data)) : data, options);")}`;
21
24
  export async function refreshLocalPackages(root, manifest, selectedManager) {
22
25
  const pkg = readJson(path.join(root, "package.json"));
23
26
  // The template owns the tested compatibility matrix, not module inclusion.
@@ -86,11 +89,13 @@ export async function create(root, archiveManifest, platform = hostPlatform(), u
86
89
  // Expo Desktop misreads npm 12's record-shaped pack metadata for a local tarball.
87
90
  // Use the compatible npm executable for upstream extraction; the chosen manager installs.
88
91
  const npmBin = path.join(import.meta.dirname, "npm-bin");
92
+ // Yarn PnP (`yarn dlx`) loads Expo Desktop from zip archives.
93
+ const pnp = !!process.versions.pnp;
89
94
  // Expo needs file: to distinguish Windows drive paths from npm package names.
90
95
  const child = spawnProcess(nodeCommand(path.resolve(import.meta.dirname, ".."), "expo-desktop", "expo-desktop", [
91
96
  "create-app", root, "--template", `file:${templateFile}`, "--yes", "--no-agents-md",
92
- "--display-name", name, "--rdns", `so.legend.spark.prototype.${name.toLowerCase()}`,
93
- ]), { cwd: process.cwd(), env: { ...process.env, PATH: `${npmBin}${path.delimiter}${process.env.PATH ?? ""}`, npm_config_user_agent: `${manager}/spark`, CI: "1", ...(manager === "yarn" ? { YARN_ENABLE_IMMUTABLE_INSTALLS: "false" } : {}) }, stdout: "pipe", stderr: "inherit" });
97
+ "--display-name", name, "--rdns", `so.legend.spark.prototype.${name.toLowerCase()}`, ...(pnp ? ["--no-install"] : []),
98
+ ]), { cwd: process.cwd(), env: { ...process.env, PATH: `${npmBin}${path.delimiter}${process.env.PATH ?? ""}`, npm_config_user_agent: `${manager}/spark`, CI: "1", ...(pnp ? { NODE_OPTIONS: `${process.env.NODE_OPTIONS ?? ""} ${pnpWriteFile}` } : {}), ...(manager === "yarn" ? { YARN_ENABLE_IMMUTABLE_INSTALLS: "false" } : {}) }, stdout: "pipe", stderr: "inherit" });
94
99
  // Spark owns the next steps; Expo's final block requires an unnecessary prebuild.
95
100
  let projectReady = false;
96
101
  for await (const line of createInterface({ input: Readable.from(child.stdout), crlfDelay: Infinity })) {
@@ -101,6 +106,13 @@ export async function create(root, archiveManifest, platform = hostPlatform(), u
101
106
  }
102
107
  if (await child.exited)
103
108
  throw new Error("Expo Desktop could not create the app. See its output above.");
109
+ if (pnp) {
110
+ // Expo Desktop's install would inherit the PnP runtime of `yarn dlx`; install without it.
111
+ process.env.NODE_OPTIONS = process.env.NODE_OPTIONS?.replace(/--(?:require|experimental-loader)[ =]("[^"]*\.pnp\.[^"]*"|\S*\.pnp\.\S*)/g, "") ?? "";
112
+ if (manager === "yarn")
113
+ appendFileSync(path.join(root, "yarn.lock"), "");
114
+ await run(root, managerCommand(manager, ["install"]));
115
+ }
104
116
  }
105
117
  finally {
106
118
  rmSync(temporary, { recursive: true, force: true });
@@ -16,7 +16,8 @@ function initializeTemplate(root) {
16
16
  config.name = expo.name;
17
17
  config.projectId = expo.windows.projectGuid;
18
18
  config.expo = { ...expo, ...config.expo };
19
- if (config.macos) config.macos = { ...expo.macos, ...config.macos, bundleIdentifier: expo.macos.bundleIdentifier };
19
+ const { version, ...macos } = expo.macos;
20
+ if (config.macos) config.macos = { ...macos, ...config.macos, bundleIdentifier: macos.bundleIdentifier };
20
21
  toExpo(config);
21
22
  fs.writeFileSync(file, JSON.stringify(config, null, 2) + '\n');
22
23
  prepareConfig(root);
@@ -4,4 +4,8 @@ export const macOSReleaseSettings = [
4
4
  "DEAD_CODE_STRIPPING=YES",
5
5
  "LLVM_LTO=YES_THIN",
6
6
  "GCC_OPTIMIZATION_LEVEL=z",
7
+ // ld (ld-27037, Xcode 27) gives _objc_msgSend two GOT slots and, from identical inputs, assigns the fast Objective-C
8
+ // selector stubs and other references to them in a varying order, so two links of the same objects differ. With
9
+ // small stubs every link is identical; they are also smaller, as the size-optimized release asks.
10
+ "OTHER_LDFLAGS=$(inherited) -Wl,-objc_stubs_small",
7
11
  ];
@@ -12,7 +12,7 @@ import { existsSync, readFileSync, readdirSync, realpathSync, } from "node:fs";
12
12
  import path from "node:path";
13
13
  import { readJson, writeJson } from "./json.js";
14
14
  export { readJson, writeJson };
15
- export const VERSION = "0.0.1-next.7";
15
+ export const VERSION = "0.0.1-next.8";
16
16
  export function digest(value) {
17
17
  return createHash("sha256").update(value).digest("hex");
18
18
  }
@@ -257,6 +257,12 @@ export function hostSourceSignature(root) {
257
257
  .filter(pkg => ["@legendapp/spark-desktop-host", "@legendapp/spark-desktop-config"].includes(pkg.name))
258
258
  .map(pkg => [pkg.name, hashFiles(pkg.root, ["package.json", "AppDelegate.mm", "SparkCustomize.mm", "windows", ...readdirSync(pkg.root).filter(file => file.endsWith(".cjs"))])])));
259
259
  }
260
+ // CocoaPods lists each native source in the generated project, so adding or
261
+ // removing one (not editing it) requires pod install.
262
+ function nativeSourceNames(root) {
263
+ return ["macos", "ios", "cpp", "common"].filter(directory => existsSync(path.join(root, directory)))
264
+ .flatMap(directory => readdirSync(path.join(root, directory), { recursive: true }).map(name => path.join(directory, String(name)))).sort();
265
+ }
260
266
  export function nativePreparationInputs(root, packages) {
261
267
  return {
262
268
  config: readAppConfig(root),
@@ -264,11 +270,11 @@ export function nativePreparationInputs(root, packages) {
264
270
  p.name,
265
271
  // CocoaPods records physical source paths, even for identical packages.
266
272
  p.root,
267
- hashFiles(p.root, [
273
+ digest(hashFiles(p.root, [
268
274
  "package.json",
269
275
  p.json.codegenConfig?.jsSrcsDir ?? "src",
270
276
  ...readdirSync(p.root).filter((name) => name.endsWith(".podspec")),
271
- ]),
277
+ ]) + JSON.stringify(nativeSourceNames(p.root))),
272
278
  ]),
273
279
  plugin: hostSourceSignature(root),
274
280
  };
@@ -364,7 +370,7 @@ export function goConfigurationIssues(config) {
364
370
  issues.push("app configuration requires a custom runtime");
365
371
  if ((expo.plugins ?? []).some((plugin) => !["@legendapp/spark-desktop-config", "@legendapp/spark/config-plugin"].includes(Array.isArray(plugin) ? plugin[0] : plugin)))
366
372
  issues.push("additional configuration plugins require a custom runtime");
367
- if (Object.keys(expo.macos ?? {}).some((key) => !["bundleIdentifier", "infoPlist"].includes(key)))
373
+ if (Object.keys(expo.macos ?? {}).some((key) => !["bundleIdentifier", "version", "buildNumber", "infoPlist"].includes(key)))
368
374
  issues.push("macOS native configuration requires a custom runtime");
369
375
  if (Object.keys(expo.macos?.infoPlist ?? {}).some((key) => key !== "CFBundleName"))
370
376
  issues.push("app-specific Info.plist configuration requires a custom runtime");
@@ -0,0 +1,35 @@
1
+ import { existsSync, readdirSync, readFileSync } from "node:fs";
2
+ import path from "node:path";
3
+ // Strings only the in-app test driver's code contains (docs/test-driver.md#builds): the driver's socket name and log
4
+ // prefix. A release build has them only with macos.testDriverInRelease, so the CLI checks every macOS release build.
5
+ const MARKERS = ["driver.sock", "Spark test driver:"];
6
+ /** The test driver markers in the app's code: every file under Contents/MacOS and Contents/Frameworks. */
7
+ export function testDriverMarkers(app) {
8
+ const found = new Set();
9
+ const visit = (directory) => {
10
+ for (const entry of readdirSync(directory, { withFileTypes: true })) {
11
+ const file = path.join(directory, entry.name);
12
+ if (entry.isDirectory())
13
+ visit(file);
14
+ else if (entry.isFile()) {
15
+ const bytes = readFileSync(file);
16
+ for (const marker of MARKERS)
17
+ if (bytes.includes(marker))
18
+ found.add(marker);
19
+ }
20
+ }
21
+ };
22
+ for (const directory of ["MacOS", "Frameworks"])
23
+ if (existsSync(path.join(app, "Contents", directory)))
24
+ visit(path.join(app, "Contents", directory));
25
+ return MARKERS.filter(marker => found.has(marker));
26
+ }
27
+ /** Throws unless the release app has the test driver exactly when `inRelease` (macos.testDriverInRelease) asks for it. */
28
+ export function checkReleaseTestDriver(app, inRelease) {
29
+ const found = testDriverMarkers(app);
30
+ if (!inRelease && found.length)
31
+ throw new Error(`The release build contains test driver code (${found.join(", ")}) without macos.testDriverInRelease. Check that every Spark podspec sets SPARK_TEST_DRIVER and that driver code sits inside #if SPARK_TEST_DRIVER (docs/test-driver.md#builds).`);
32
+ const missing = MARKERS.filter(marker => !found.includes(marker));
33
+ if (inRelease && missing.length)
34
+ throw new Error(`macos.testDriverInRelease is set, but the release build lacks the test driver (${missing.join(", ")}; docs/test-driver.md#builds).`);
35
+ }
@@ -1,42 +1,42 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "0.0.1-next.7",
4
- "revision": "d750a9463e09c00bf390bb26de207586a3648d40",
3
+ "version": "0.0.1-next.8",
4
+ "revision": "8d40fdcbb527da31394b960fdd6c4e0fe621e58a",
5
5
  "packages": {
6
6
  "@react-native-runtimes/core": {
7
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.7/runtimes-985164a87eb0.tgz",
8
- "size": 53886,
9
- "sha256": "138644fcfaf60b172c9f206c66c6d160515dd8803c70264687d0f503294c9c0b"
7
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.8/runtimes-4df45cb5ea74.tgz",
8
+ "size": 54050,
9
+ "sha256": "3a04e0455ac44b0bc11cfa315943ad84509c445111a2b3974ca85c8ed489827c"
10
10
  },
11
11
  "react-native-nitro-modules": {
12
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.7/react-native-nitro-modules-0.37.0-02b4dff54381.tgz",
12
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.8/react-native-nitro-modules-0.37.0-5df8774796c4.tgz",
13
13
  "size": 145600,
14
- "sha256": "02b4dff54381bbd4640eb4067e1dc82d7a79ff7e7f83b4357a4265177722d999"
14
+ "sha256": "5df8774796c48ed54d238f3fada01b64d710b14077983c37f639607eb805e066"
15
15
  },
16
16
  "@op-engineering/op-sqlite": {
17
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.7/op-engineering-op-sqlite-18.2.1-dcc9490310bc.tgz",
18
- "size": 112508535,
19
- "sha256": "dcc9490310bc74c869ba7cf5e846a8966fab7c3871c4a536482c20be237894fd"
17
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.8/op-engineering-op-sqlite-18.2.1-a14b99ecf491.tgz",
18
+ "size": 5847607,
19
+ "sha256": "a14b99ecf4911b55f586b2c5d1f58ac48b0a9d8fe4b84fa6edef1a167630646b"
20
20
  },
21
21
  "react-native-webview": {
22
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.7/react-native-webview-16.0.0-b887e540eca8.tgz",
23
- "size": 116289,
24
- "sha256": "b887e540eca87c6817de6b38c4e8f4076e3a65e0f7fa63f0c5882e1155447a59"
22
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.8/react-native-webview-16.0.0-333e421ad38b.tgz",
23
+ "size": 116285,
24
+ "sha256": "333e421ad38b0da2b1dc7b3306de019f257e31bfd6cdb0272d97b1bb2b129354"
25
25
  },
26
26
  "expo-audio": {
27
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.7/expo-audio-1.1.1-aff5604f2c4c.tgz",
27
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.8/expo-audio-1.1.1-aff5604f2c4c.tgz",
28
28
  "size": 381841,
29
29
  "sha256": "aff5604f2c4cab23299a71e37e802a572b2e66e2e2250b20a261e664d5346693"
30
30
  }
31
31
  },
32
32
  "runners": {
33
33
  "macos-arm64": {
34
- "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.7/spark-runner-macos-arm64.zip",
35
- "size": 20509043,
36
- "sha256": "7441a17362d2be2f78bf5fbb1221b8eb88d988c7f9d877266ab680653f5e65b8",
34
+ "url": "https://github.com/LegendApp/legend-spark/releases/download/v0.0.1-next.8/spark-runner-macos-arm64.zip",
35
+ "size": 20579687,
36
+ "sha256": "f1137d1d8922cdad365a7530f5f5121f57a140d5a81756c31b4f3028215c76e5",
37
37
  "app": "SparkRunner.app",
38
38
  "teamId": "56DD97VT22",
39
- "fingerprint": "a0198a6ade8e3012beb792c8bc3f409e61de34a171035b52a10cc841d766fcb3"
39
+ "fingerprint": "2b1a4b243b0032e57eb0d0255005663ba99ff74a2045e7093a197249813f59f9"
40
40
  }
41
41
  }
42
42
  }
@@ -1,7 +1,7 @@
1
1
  import { writeFile } from "node:fs/promises";
2
2
  import { readAppConfig, writeUpdates } from "./project.js";
3
3
  import { createHash, createPublicKey, verify } from "node:crypto";
4
- import { cpSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync } from "node:fs";
4
+ import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
5
5
  import path from "node:path";
6
6
  import { createRequire } from "node:module";
7
7
  import { sparkHome } from "./local.js";
@@ -52,7 +52,7 @@ export async function initializeUpdates(root, feedURL, execute = run) {
52
52
  updateConfiguration({ extra: { spark: { updates: { feedURL, publicKey } } } });
53
53
  if (config.expo.extra?.spark?.updates?.publicKey && config.expo.extra.spark.updates.publicKey !== publicKey)
54
54
  throw new Error("This Mac's update key differs from the configured public key. Import the existing Sparkle key instead of replacing it.");
55
- writeUpdates(root, { feedURL, publicKey });
55
+ writeUpdates(root, { ...config.expo.extra?.spark?.updates, feedURL, publicKey });
56
56
  console.log("Updates configured. The private key stays in Keychain. Import @legendapp/spark/updates and run spark package to generate a signed feed.");
57
57
  }
58
58
  export function verifyUpdateSignature(archive, signature, publicKey) {
@@ -63,7 +63,7 @@ export function verifyUpdateSignature(archive, signature, publicKey) {
63
63
  const buildNumberPattern = /^[0-9]+(?:\.[0-9]+){0,2}$/;
64
64
  function buildNumberParts(version) { return version.split(".").map(part => part.replace(/^0+(?=\d)/, "")); }
65
65
  function canonicalBuildNumber(version) { return buildNumberParts(version).concat(["0", "0"]).slice(0, 3).join("."); }
66
- function compareBuildNumbers(left, right) {
66
+ export function compareBuildNumbers(left, right) {
67
67
  const a = buildNumberParts(left), b = buildNumberParts(right);
68
68
  for (let index = 0; index < 3; index++) {
69
69
  const x = a[index] ?? "0", y = b[index] ?? "0";
@@ -117,13 +117,17 @@ export async function prepareUpdate(root, archive, buildVersion, dependencies =
117
117
  const staging = path.join(root, ".spark", `update-feed-${crypto.randomUUID()}`);
118
118
  mkdirSync(staging, { recursive: true });
119
119
  try {
120
+ // Sparkle only uses deltas of the newest item, so generate_appcast gets no old deltas or
121
+ // references to them; it signs the feed again and creates deltas for this build only.
120
122
  if (existsSync(directory))
121
- cpSync(directory, staging, { recursive: true });
123
+ cpSync(directory, staging, { recursive: true, filter: source => !source.endsWith(".delta") });
122
124
  const name = `${path.basename(archive, ".zip")}-build-${buildVersion}.zip`;
123
125
  cpSync(archive, path.join(staging, name));
124
126
  const url = new URL(updates.feedURL);
125
127
  const feed = path.join(staging, path.basename(url.pathname));
126
- await dependencies.run(root, [path.join(bin, "generate_appcast"), ...keyArgs, "--download-url-prefix", new URL(".", url).href, "--maximum-deltas", "0", "--maximum-versions", "0", "-o", feed, staging], { capture: true });
128
+ if (existsSync(feed))
129
+ writeFileSync(feed, readFileSync(feed, "utf8").replace(/\s*<sparkle:deltas>[\s\S]*?<\/sparkle:deltas>/g, ""));
130
+ await dependencies.run(root, [path.join(bin, "generate_appcast"), ...keyArgs, "--download-url-prefix", new URL(".", url).href, "--maximum-deltas", String(updates.maximumDeltas ?? 0), "--maximum-versions", "0", "-o", feed, staging], { capture: true });
127
131
  if (!existsSync(feed) || !readFileSync(feed, "utf8").includes(`sparkle:edSignature="${signature}"`))
128
132
  throw new Error("Generated appcast did not include the signed update archive");
129
133
  // Verify the signed feed using the same key; Sparkle verifies it in the app.
@@ -131,15 +135,21 @@ export async function prepareUpdate(root, archive, buildVersion, dependencies =
131
135
  records[buildVersion] = { sha256: hash, archive: name };
132
136
  writeJson(path.join(staging, "releases.json"), records);
133
137
  mkdirSync(directory, { recursive: true });
134
- // Publish archives before the feed, so a feed never points at incomplete bytes.
138
+ // Publish archives and deltas before the feed, so a feed never points at incomplete bytes.
135
139
  cpSync(path.join(staging, name), path.join(directory, name));
140
+ const deltas = readdirSync(staging).filter(file => file.endsWith(".delta"));
141
+ for (const delta of deltas)
142
+ cpSync(path.join(staging, delta), path.join(directory, delta));
136
143
  cpSync(path.join(staging, "releases.json"), recordsFile);
137
144
  const target = path.join(directory, path.basename(feed));
138
145
  const temporary = `${target}.${process.pid}.tmp`;
139
146
  cpSync(feed, temporary);
140
147
  renameSync(temporary, target);
141
- console.log(`Signed update ready: ${target}\nUpload the ZIP and appcast to ${new URL(".", url).href}`);
142
- return { feed: target, archive: path.join(directory, name) };
148
+ for (const file of readdirSync(directory))
149
+ if (file.endsWith(".delta") && !deltas.includes(file))
150
+ rmSync(path.join(directory, file));
151
+ console.log(`Signed update ready: ${target}\nUpload the ZIP${deltas.length ? `, ${deltas.join(", ")}` : ""} and then the appcast to ${new URL(".", url).href}`);
152
+ return { feed: target, archive: path.join(directory, name), deltas: deltas.map(delta => path.join(directory, delta)) };
143
153
  }
144
154
  finally {
145
155
  rmSync(staging, { recursive: true, force: true });
@@ -65,7 +65,7 @@ export async function prepareWindows(root, mode) {
65
65
  const manifest = readFileSync(path.join(root, "package.json"), "utf8");
66
66
  try {
67
67
  await preserveWindowsBuildOutputs(root, async () => {
68
- await run(root, nodeCommand(root, "expo-desktop", "expo-desktop", ["prebuild", "--platform", "windows", "--template", "expo-desktop-template-bare-minimum@54.81.1", "--no-install"]), { env: { CI: "1" }, capture: true });
68
+ await run(root, nodeCommand(root, "expo-desktop", "expo-desktop", ["prebuild", "--platform", "windows", "--template", "expo-desktop-template-bare-minimum@54.81.6", "--no-install"]), { env: { CI: "1" }, capture: true });
69
69
  });
70
70
  // The beta template expands all-platform dependencies. Keep the consumer's installed graph.
71
71
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/spark-cli",
3
- "version": "0.0.1-next.7",
3
+ "version": "0.0.1-next.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [
@@ -11,13 +11,13 @@
11
11
  "node": ">=24.19.0"
12
12
  },
13
13
  "dependencies": {
14
- "@legendapp/spark-desktop-config": "0.0.1-next.7",
14
+ "@legendapp/spark-desktop-config": "0.0.1-next.8",
15
15
  "ws": "8.21.0",
16
- "expo-desktop": "1.0.0",
16
+ "expo-desktop": "1.0.6",
17
17
  "npm": "11.21.1",
18
18
  "typescript": "5.9.3",
19
19
  "cross-spawn": "7.0.6",
20
- "@legendapp/spark-window-options": "0.0.1-next.7",
20
+ "@legendapp/spark-window-options": "0.0.1-next.8",
21
21
  "diff": "8.0.4",
22
22
  "yaml": "2.9.1"
23
23
  },
@@ -6,6 +6,10 @@
6
6
  "platforms": [
7
7
  "macos"
8
8
  ],
9
- "icon": "./assets/icon.png"
9
+ "icon": "./assets/icon.png",
10
+ "macos": {
11
+ "version": "0.0.1",
12
+ "buildNumber": "1"
13
+ }
10
14
  }
11
15
  }
@@ -1,6 +1,7 @@
1
1
  node_modules/
2
2
  .threaded-runtime/
3
- .spark/
3
+ .spark/*
4
+ !.spark/version
4
5
  macos/
5
6
  dist/
6
7
  app.json
@@ -13,13 +13,13 @@
13
13
  "postinstall": "node node_modules/@legendapp/spark/init-template.cjs"
14
14
  },
15
15
  "dependencies": {
16
- "@legendapp/spark": "0.0.1-next.7",
16
+ "@legendapp/spark": "0.0.1-next.8",
17
17
  "expo": "54.0.37",
18
- "expo-desktop": "1.0.0",
19
- "expo-desktop-prebuild-config": "1.1.0",
20
- "expo-desktop-config-plugins": "1.2.0",
21
- "expo-desktop-metro-config": "54.81.0",
22
- "expo-desktop-template-bare-minimum": "54.81.1",
18
+ "expo-desktop": "1.0.6",
19
+ "expo-desktop-prebuild-config": "1.1.3",
20
+ "expo-desktop-config-plugins": "1.3.2",
21
+ "expo-desktop-metro-config": "54.81.3",
22
+ "expo-desktop-template-bare-minimum": "54.81.6",
23
23
  "react": "19.1.4",
24
24
  "react-dom": "19.1.4",
25
25
  "react-native": "0.81.6",
@@ -41,7 +41,7 @@
41
41
  "expo-keep-awake": "15.0.8",
42
42
  "expo-modules-core": "3.0.30",
43
43
  "expo-desktop-modules-core": "54.0.14",
44
- "expo-desktop-stubs": "54.0.14",
44
+ "expo-desktop-stubs": "54.0.15",
45
45
  "react": "19.1.4",
46
46
  "react-native": "0.81.6",
47
47
  "react-native-macos": "0.81.7",