diff --git a/CHANGELOG.md b/CHANGELOG.md index da0c67ca20..cc3b48066d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * When mapTo is used on a property of type List, an error like `Property 'test_list' does not exist on 'Task' objects` occurs when trying to access the property. ([#6268](https://github.com/realm/realm-js/issues/6268), since v12.0.0) * Fixed bug where apps running under JavaScriptCore on Android will terminate with the error message `No identifiers allowed directly after numeric literal`. ([#6194](https://github.com/realm/realm-js/issues/6194), since v12.2.0) * When an object had an embedded object as one of its properties, updating that property to `null` or `undefined` did not update the property in the database. ([#6280](https://github.com/realm/realm-js/issues/6280), since v12.0.0) +* Fixed download of platform + arch specific prebuilt binaries when building an Electron app using `electron-builder`. ([#3828](https://github.com/realm/realm-js/issues/3828)) ### Compatibility * React Native >= v0.71.4 diff --git a/packages/realm/binding.gyp b/packages/realm/binding.gyp new file mode 100644 index 0000000000..20542b8796 --- /dev/null +++ b/packages/realm/binding.gyp @@ -0,0 +1,4 @@ +# We're not actually using node-gyp, +# but this file is present to signal to `electron-builder` that we have a native module prebuilt that needs to be downloaded. +# See https://github.com/develar/app-builder/blob/0bc38fb5e76c38ab24e36acf7a17887370e31fb4/pkg/node-modules/rebuild.go#L338 +{} diff --git a/packages/realm/package.json b/packages/realm/package.json index 8802603f78..12e668d8ea 100644 --- a/packages/realm/package.json +++ b/packages/realm/package.json @@ -59,7 +59,8 @@ "react-native/ios/RealmReact", "scripts/submit-analytics.mjs", "react-native.config.js", - "RealmJS.podspec" + "RealmJS.podspec", + "binding.gyp" ], "scripts": { "test": "wireit",