diff --git a/lib/config.js b/lib/config.js index d1cd93288c..f508f496cb 100755 --- a/lib/config.js +++ b/lib/config.js @@ -193,6 +193,12 @@ Config.prototype.buildArgs = function () { args.tag_ap = this.tag_ap } + if (process.platform === 'win32' && this.build_delta_installer) { + assert(this.last_chrome_installer, 'Need last_chrome_installer args for building delta installer') + args.build_delta_installer = true + args.last_chrome_installer = this.last_chrome_installer + } + if (this.isDebug() && this.targetOS !== 'ios' && this.targetOS !== 'android') { @@ -482,6 +488,11 @@ Config.prototype.update = function (options) { this.skip_signing = true } + if (options.build_delta_installer) { + this.build_delta_installer = true + this.last_chrome_installer = options.last_chrome_installer + } + if (options.mac_signing_identifier) this.mac_signing_identifier = options.mac_signing_identifier diff --git a/scripts/commands.js b/scripts/commands.js index 5f8cb1d269..66674f0e75 100755 --- a/scripts/commands.js +++ b/scripts/commands.js @@ -81,6 +81,8 @@ program .option('--build_omaha', 'build omaha stub/standalone installer') .option('--tag_ap ', 'ap for stub/standalone installer') .option('--skip_signing', 'skip signing dmg/brave_installer.exe') + .option('--build_delta_installer', 'build delta mini installer') + .option('--last_chrome_installer ', 'folder contains previous version uncompressed chrome.7z pack file. This folder should be in out dir.') .option('--android_override_version_name ', 'Android version number') .option('--brave_safetynet_api_key ') .option('--notarize', 'notarize the macOS app with Apple')