electron-builder-squirrel-windows
Advanced tools
Comparing version 13.6.1 to 13.10.0
@@ -8,20 +8,20 @@ "use strict"; | ||
var _bluebirdLstC; | ||
var _bluebirdLst; | ||
function _load_bluebirdLstC() { | ||
return _bluebirdLstC = require("bluebird-lst-c"); | ||
function _load_bluebirdLst() { | ||
return _bluebirdLst = require("bluebird-lst"); | ||
} | ||
var _bluebirdLstC2; | ||
var _bluebirdLst2; | ||
function _load_bluebirdLstC2() { | ||
return _bluebirdLstC2 = _interopRequireDefault(require("bluebird-lst-c")); | ||
function _load_bluebirdLst2() { | ||
return _bluebirdLst2 = _interopRequireDefault(require("bluebird-lst")); | ||
} | ||
let buildInstaller = exports.buildInstaller = (() => { | ||
var _ref = (0, (_bluebirdLstC || _load_bluebirdLstC()).coroutine)(function* (options, outputDirectory, setupExe, packager, appOutDir) { | ||
var _ref = (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* (options, outputDirectory, setupExe, packager, appOutDir) { | ||
const appUpdate = yield packager.getTempFile("Update.exe"); | ||
yield (_bluebirdLstC2 || _load_bluebirdLstC2()).default.all([(0, (_fsExtraP || _load_fsExtraP()).copy)(_path.join(options.vendorPath, "Update.exe"), appUpdate).then(function () { | ||
yield (_bluebirdLst2 || _load_bluebirdLst2()).default.all([(0, (_fsExtraP || _load_fsExtraP()).copy)(_path.join(options.vendorPath, "Update.exe"), appUpdate).then(function () { | ||
return packager.sign(appUpdate); | ||
}), (_bluebirdLstC2 || _load_bluebirdLstC2()).default.all([(0, (_fsExtraP || _load_fsExtraP()).remove)(`${outputDirectory.replace(/\\/g, "/")}/*-full.nupkg`), (0, (_fsExtraP || _load_fsExtraP()).remove)(_path.join(outputDirectory, "RELEASES"))]).then(function () { | ||
}), (_bluebirdLst2 || _load_bluebirdLst2()).default.all([(0, (_fsExtraP || _load_fsExtraP()).remove)(`${outputDirectory.replace(/\\/g, "/")}/*-full.nupkg`), (0, (_fsExtraP || _load_fsExtraP()).remove)(_path.join(outputDirectory, "RELEASES"))]).then(function () { | ||
return (0, (_fsExtraP || _load_fsExtraP()).ensureDir)(outputDirectory); | ||
@@ -35,3 +35,3 @@ })]); | ||
const embeddedArchiveOut = (0, (_fsExtraP || _load_fsExtraP()).createWriteStream)(embeddedArchiveFile); | ||
const embeddedArchivePromise = new (_bluebirdLstC2 || _load_bluebirdLstC2()).default(function (resolve, reject) { | ||
const embeddedArchivePromise = new (_bluebirdLst2 || _load_bluebirdLst2()).default(function (resolve, reject) { | ||
embeddedArchive.on("error", reject); | ||
@@ -42,3 +42,3 @@ embeddedArchiveOut.on("close", resolve); | ||
embeddedArchive.file(appUpdate, { name: "Update.exe" }); | ||
embeddedArchive.file(options.loadingGif ? _path.resolve(options.loadingGif) : _path.join(options.vendorPath, "install-spinner.gif"), { name: "background.gif" }); | ||
embeddedArchive.file(options.loadingGif ? _path.resolve(packager.projectDir, options.loadingGif) : _path.join(options.vendorPath, "install-spinner.gif"), { name: "background.gif" }); | ||
const version = convertVersion(options.version); | ||
@@ -48,3 +48,3 @@ const packageName = `${options.name}-${version}-full.nupkg`; | ||
const setupPath = _path.join(outputDirectory, setupExe || `${options.name || options.productName}Setup.exe`); | ||
yield (_bluebirdLstC2 || _load_bluebirdLstC2()).default.all([pack(options, appOutDir, appUpdate, nupkgPath, version, packager), (0, (_fsExtraP || _load_fsExtraP()).copy)(_path.join(options.vendorPath, "Setup.exe"), setupPath)]); | ||
yield (_bluebirdLst2 || _load_bluebirdLst2()).default.all([pack(options, appOutDir, appUpdate, nupkgPath, version, packager), (0, (_fsExtraP || _load_fsExtraP()).copy)(_path.join(options.vendorPath, "Setup.exe"), setupPath)]); | ||
embeddedArchive.file(nupkgPath, { name: packageName }); | ||
@@ -71,6 +71,6 @@ const releaseEntry = yield releasify(options, nupkgPath, outputDirectory, packageName); | ||
let pack = (() => { | ||
var _ref2 = (0, (_bluebirdLstC || _load_bluebirdLstC()).coroutine)(function* (options, directory, updateFile, outFile, version, packager) { | ||
var _ref2 = (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* (options, directory, updateFile, outFile, version, packager) { | ||
const archive = archiver("zip", { zlib: { level: options.packageCompressionLevel == null ? 9 : options.packageCompressionLevel } }); | ||
const archiveOut = (0, (_fsExtraP || _load_fsExtraP()).createWriteStream)(outFile); | ||
const archivePromise = new (_bluebirdLstC2 || _load_bluebirdLstC2()).default(function (resolve, reject) { | ||
const archivePromise = new (_bluebirdLst2 || _load_bluebirdLst2()).default(function (resolve, reject) { | ||
archive.on("error", reject); | ||
@@ -143,3 +143,3 @@ archiveOut.on("error", reject); | ||
let releasify = (() => { | ||
var _ref3 = (0, (_bluebirdLstC || _load_bluebirdLstC()).coroutine)(function* (options, nupkgPath, outputDirectory, packageName) { | ||
var _ref3 = (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* (options, nupkgPath, outputDirectory, packageName) { | ||
const args = ["--releasify", nupkgPath, "--releaseDir", outputDirectory]; | ||
@@ -168,3 +168,3 @@ const out = (yield (0, (_electronBuilderUtil || _load_electronBuilderUtil()).exec)(process.platform === "win32" ? _path.join(options.vendorPath, "Update.com") : "mono", (0, (_electronBuilderUtil || _load_electronBuilderUtil()).prepareArgs)(args, _path.join(options.vendorPath, "Update-Mono.exe")), { | ||
let msi = (() => { | ||
var _ref4 = (0, (_bluebirdLstC || _load_bluebirdLstC()).coroutine)(function* (options, nupkgPath, setupPath, outputDirectory, outFile) { | ||
var _ref4 = (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* (options, nupkgPath, setupPath, outputDirectory, outFile) { | ||
const args = ["--createMsi", nupkgPath, "--bootstrapperExe", setupPath]; | ||
@@ -181,3 +181,3 @@ yield (0, (_electronBuilderUtil || _load_electronBuilderUtil()).exec)(process.platform === "win32" ? _path.join(options.vendorPath, "Update.com") : "mono", (0, (_electronBuilderUtil || _load_electronBuilderUtil()).prepareArgs)(args, _path.join(options.vendorPath, "Update-Mono.exe"))); | ||
//noinspection SpellCheckingInspection | ||
yield (_bluebirdLstC2 || _load_bluebirdLstC2()).default.all([(0, (_fsExtraP || _load_fsExtraP()).unlink)(_path.join(outputDirectory, "Setup.wxs")), (0, (_fsExtraP || _load_fsExtraP()).unlink)(_path.join(outputDirectory, "Setup.wixobj")), (0, (_fsExtraP || _load_fsExtraP()).unlink)(_path.join(outputDirectory, outFile.replace(".msi", ".wixpdb"))).catch(function (e) { | ||
yield (_bluebirdLst2 || _load_bluebirdLst2()).default.all([(0, (_fsExtraP || _load_fsExtraP()).unlink)(_path.join(outputDirectory, "Setup.wxs")), (0, (_fsExtraP || _load_fsExtraP()).unlink)(_path.join(outputDirectory, "Setup.wixobj")), (0, (_fsExtraP || _load_fsExtraP()).unlink)(_path.join(outputDirectory, outFile.replace(".msi", ".wixpdb"))).catch(function (e) { | ||
return (0, (_electronBuilderUtil || _load_electronBuilderUtil()).debug)(e.toString()); | ||
@@ -193,5 +193,5 @@ })]); | ||
let encodedZip = (() => { | ||
var _ref5 = (0, (_bluebirdLstC || _load_bluebirdLstC()).coroutine)(function* (archive, dir, prefix, vendorPath, packager) { | ||
var _ref5 = (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* (archive, dir, prefix, vendorPath, packager) { | ||
yield (0, (_fs || _load_fs()).walk)(dir, null, (() => { | ||
var _ref6 = (0, (_bluebirdLstC || _load_bluebirdLstC()).coroutine)(function* (file, stats) { | ||
var _ref6 = (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* (file, stats) { | ||
if (stats.isDirectory()) { | ||
@@ -237,10 +237,2 @@ return; | ||
var _path = _interopRequireWildcard(require("path")); | ||
var _fsExtraP; | ||
function _load_fsExtraP() { | ||
return _fsExtraP = require("fs-extra-p"); | ||
} | ||
var _electronBuilderUtil; | ||
@@ -252,2 +244,8 @@ | ||
var _fs; | ||
function _load_fs() { | ||
return _fs = require("electron-builder-util/out/fs"); | ||
} | ||
var _log; | ||
@@ -259,8 +257,10 @@ | ||
var _fs; | ||
var _fsExtraP; | ||
function _load_fs() { | ||
return _fs = require("electron-builder-util/out/fs"); | ||
function _load_fsExtraP() { | ||
return _fsExtraP = require("fs-extra-p"); | ||
} | ||
var _path = _interopRequireWildcard(require("path")); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
@@ -267,0 +267,0 @@ |
@@ -7,6 +7,6 @@ "use strict"; | ||
var _bluebirdLstC; | ||
var _bluebirdLst; | ||
function _load_bluebirdLstC() { | ||
return _bluebirdLstC = require("bluebird-lst-c"); | ||
function _load_bluebirdLst() { | ||
return _bluebirdLst = require("bluebird-lst"); | ||
} | ||
@@ -55,3 +55,3 @@ | ||
return (0, (_bluebirdLstC || _load_bluebirdLstC()).coroutine)(function* () { | ||
return (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* () { | ||
(0, (_log || _load_log()).log)(`Building Squirrel.Windows for arch ${(_electronBuilderCore || _load_electronBuilderCore()).Arch[arch]}`); | ||
@@ -81,3 +81,3 @@ if (arch === (_electronBuilderCore || _load_electronBuilderCore()).Arch.ia32) { | ||
return (0, (_bluebirdLstC || _load_bluebirdLstC()).coroutine)(function* () { | ||
return (0, (_bluebirdLst || _load_bluebirdLst()).coroutine)(function* () { | ||
const packager = _this2.packager; | ||
@@ -84,0 +84,0 @@ let iconUrl = _this2.options.iconUrl || packager.config.iconUrl; |
{ | ||
"name": "electron-builder-squirrel-windows", | ||
"version": "13.6.1", | ||
"version": "13.10.0", | ||
"main": "out/squirrelWindows.js", | ||
@@ -14,6 +14,6 @@ "author": "Vladimir Krivosheev", | ||
"dependencies": { | ||
"electron-builder-util": "~13.6.0", | ||
"electron-builder-util": "~13.10.0", | ||
"electron-builder-core": "~13.6.0", | ||
"bluebird-lst-c": "^1.0.6", | ||
"fs-extra-p": "^3.1.0", | ||
"bluebird-lst": "^1.0.1", | ||
"fs-extra-p": "^4.0.1", | ||
"archiver": "^1.3.0" | ||
@@ -20,0 +20,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55145
+ Addedbluebird-lst@^1.0.1
+ Addedbluebird-lst@1.0.9(transitive)
+ Addedelectron-builder-http@13.10.1(transitive)
+ Addedelectron-builder-util@13.10.1(transitive)
+ Addedfs-extra@6.0.1(transitive)
+ Addedfs-extra-p@4.6.1(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addeduniversalify@0.1.2(transitive)
- Removedbluebird-lst-c@^1.0.6
- Removedbluebird-lst-c@1.0.6(transitive)
- Removedelectron-builder-http@13.6.0(transitive)
- Removedelectron-builder-util@13.6.0(transitive)
- Removedfs-extra@2.1.2(transitive)
- Removedfs-extra-p@3.1.0(transitive)
- Removedjsonfile@2.4.0(transitive)
Updatedfs-extra-p@^4.0.1