AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
fix(release): scope sharing patch to Android
tianma-if5a90f09ec135
diff --git a/scripts/plan-native-release.mjs b/scripts/plan-native-release.mjsindex e765f48b..8bb5cc99 100644--- a/scripts/plan-native-release.mjs+++ b/scripts/plan-native-release.mjs@@ -11,6 +11,18 @@ export const planNativeRelease = (platform, changedFiles) => {(file) => !file.endsWith(".md"),);+ const mobileOnlyDependencyPatches = runtimeChangedFiles.filter((file) =>+ file.startsWith("patches/expo-sharing@")+ );+ const lockfileIsMobileOnly =+ mobileOnlyDependencyPatches.length > 0 &&+ runtimeChangedFiles.every((file) =>+ file === "package.json" ||+ file === "bun.lock" ||+ file.startsWith("patches/expo-sharing@") ||+ file.startsWith("scripts/plan-native-release")+ );+const relevantPrefixes =platform === "mobile"? ["apps/mobile/", "packages/client/", "packages/shared/"]@@ -31,6 +43,7 @@ export const planNativeRelease = (platform, changedFiles) => {"scripts/build-android-local.sh","scripts/download-play-universal-apk.mjs","scripts/verify-android-apk-signature.mjs",+ ...mobileOnlyDependencyPatches,]): new Set([".github/workflows/desktop-build.yml",@@ -46,6 +59,8 @@ export const planNativeRelease = (platform, changedFiles) => {(file) =>relevantPrefixes.some((prefix) => file.startsWith(prefix)) ||relevantFiles.has(file),+ ).filter((file) =>+ !(platform === "desktop" && file === "bun.lock" && lockfileIsMobileOnly),);return {diff --git a/scripts/plan-native-release.test.mjs b/scripts/plan-native-release.test.mjsindex 23c3ec34..7c1e0ab2 100644--- a/scripts/plan-native-release.test.mjs+++ b/scripts/plan-native-release.test.mjs@@ -30,6 +30,28 @@ describe("native release planning", () => {});});+ test("keeps an expo-sharing dependency patch scoped to Android", () => {+ const changedFiles = [+ "package.json",+ "bun.lock",+ "patches/[email protected]",+ "scripts/plan-native-release.mjs",+ "scripts/plan-native-release.test.mjs",+ ];++ expect(planNativeRelease("mobile", changedFiles)).toEqual({+ rebuild: true,+ relevantChanges: [+ "bun.lock",+ "patches/[email protected]",+ ],+ });+ expect(planNativeRelease("desktop", changedFiles)).toEqual({+ rebuild: false,+ relevantChanges: [],+ });+ });+test("rebuilds desktop for its embedded Web renderer and shared runtime", () => {const changedFiles = ["apps/web/src/app/App.tsx",