Merge pull request #1851 from realm/ez/revert-sync-sha1

Revert the way to retrieve the sync sha1
This commit is contained in:
Emanuele Zattin 2018-06-08 13:31:53 +02:00 committed by GitHub
commit 86d56c669e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -195,9 +195,9 @@ function getSyncRequirements(dependencies, options, required = {}) {
// flavor is ignored since we only publish Release mode // flavor is ignored since we only publish Release mode
required.SYNC_ARCHIVE = `realm-sync-Release-v${dependencies.REALM_SYNC_VERSION}-Linux-devel.tar.gz`; required.SYNC_ARCHIVE = `realm-sync-Release-v${dependencies.REALM_SYNC_VERSION}-Linux-devel.tar.gz`;
return getCoreRequirements(dependencies, options, required) return getCoreRequirements(dependencies, options, required)
.then(() => { .then(() => getSyncCommitSha(dependencies.REALM_SYNC_VERSION))
const private_dependencies = ini.parse(fs.readFileSync(path.resolve(__dirname, '../../dependencies.list'), 'utf8')); .then(sha => {
required.SYNC_SERVER_FOLDER += `/sha-version/${private_dependencies.REALM_SYNC_SHA}`; required.SYNC_SERVER_FOLDER += `/sha-version/${sha}`;
return required; return required;
}); });
default: default: