Merge pull request #1855 from realm/revert-1851-ez/revert-sync-sha1
Revert "Revert the way to retrieve the sync sha1"
This commit is contained in:
commit
dd1b3622bd
|
@ -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(() => getSyncCommitSha(dependencies.REALM_SYNC_VERSION))
|
.then(() => {
|
||||||
.then(sha => {
|
const private_dependencies = ini.parse(fs.readFileSync(path.resolve(__dirname, '../../dependencies.list'), 'utf8'));
|
||||||
required.SYNC_SERVER_FOLDER += `/sha-version/${sha}`;
|
required.SYNC_SERVER_FOLDER += `/sha-version/${private_dependencies.REALM_SYNC_SHA}`;
|
||||||
return required;
|
return required;
|
||||||
});
|
});
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue