From 7ff4a05a9e93ce495f7a3e21920de43e58751e45 Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Thu, 7 Jun 2018 14:45:16 +0200 Subject: [PATCH] These days Realm Sync for Linux has a new home. (#1850) * These days Realm Sync for Linux has a new home. * Ignore flavor for Linux builds --- CHANGELOG.md | 1 + scripts/download-realm.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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: