Update to core 3.1/sync rc18

This commit is contained in:
Thomas Goyne 2017-09-07 13:42:13 -07:00
parent 32b05dcdaa
commit acf7b4d6cc
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
PACKAGE_NAME=realm-js
VERSION=2.0.0-rc4
REALM_CORE_VERSION=3.0.0-rc5
REALM_SYNC_VERSION=2.0.0-rc15
REALM_CORE_VERSION=3.1.0
REALM_SYNC_VERSION=2.0.0-rc18
REALM_OBJECT_SERVER_VERSION=2.0.0-rc2

View File

@ -105,7 +105,7 @@ const optionDefinitions = [
const options = require('command-line-args')(optionDefinitions);
console.log(options);
let serverFolder, archive, extractedFolder, forceXZ = false;
let serverFolder, archive, extractedFolder;
const dependencies = ini(fs.readFileSync(path.resolve(__dirname, '../dependencies.list'), 'utf8'));
if (!options.sync) {
@ -143,9 +143,8 @@ if (!options.sync) {
extractedFolder = `realm-sync-node-cocoa-${dependencies.REALM_SYNC_VERSION}`;
break;
case 'ios':
archive = `realm-sync-cocoa-${dependencies.REALM_SYNC_VERSION}.tar.gz`;
archive = `realm-sync-cocoa-${dependencies.REALM_SYNC_VERSION}.tar.xz`;
extractedFolder = `core`;
forceXZ = true;
break;
}
}
@ -169,7 +168,7 @@ if (options.debug) {
if (!fs.existsSync(realmDir)) {
const targetFolder = extractedFolder ? vendorDir : realmDir;
const decompressOptions = forceXZ || /tar\.xz$/.test(archive) ? { plugins: [ decompressXZ() ] } : undefined;
const decompressOptions = /tar\.xz$/.test(archive) ? { plugins: [ decompressXZ() ] } : undefined;
let pipeline = download(url, downloadedArchive);
pipeline = pipeline.then(() => decompress(downloadedArchive, targetFolder, decompressOptions));