diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ca1ce6e..1469b8b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ X.Y.Z Release notes * [Sync] Fixed a bug which crash query-based Realms. A bug in gcc's optimizer will generate code which in some case will lead to a memory violation and eventually a segmentation fault. ### Internal +* Changed download URL for Linux binaries (`scripts/download-realm.js`). * Upgraded to Realm Sync v3.5.1. * Realm Core v5.6.0. * Realm Sync v3.5.1. diff --git a/scripts/download-realm.js b/scripts/download-realm.js index efa0c7a9..869a24f7 100644 --- a/scripts/download-realm.js +++ b/scripts/download-realm.js @@ -192,9 +192,12 @@ function getSyncRequirements(dependencies, options, required = {}) { }); } case 'linux': + // flavor is ignored since we only publish Release mode required.SYNC_ARCHIVE = `realm-sync-Release-v${dependencies.REALM_SYNC_VERSION}-Linux-devel.tar.gz`; return getCoreRequirements(dependencies, options, required) - .then(() => { + .then(() => getSyncCommitSha(dependencies.REALM_SYNC_VERSION)) + .then(sha => { + required.SYNC_SERVER_FOLDER += `/sha-version/${sha}`; return required; }); default: