mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 14:25:58 +00:00
Update to core 3.1/sync rc18
This commit is contained in:
parent
32b05dcdaa
commit
acf7b4d6cc
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user