electron-installer-common
Advanced tools
Comparing version 0.7.1 to 0.7.2
10
NEWS.md
@@ -5,4 +5,12 @@ # `electron-installer-common` - Changes by Version | ||
[Unreleased]: https://github.com/electron-userland/electron-installer-common/compare/v0.7.1...master | ||
[Unreleased]: https://github.com/electron-userland/electron-installer-common/compare/v0.7.2...master | ||
## [0.7.2] - 2019-06-12 | ||
[0.7.2]: https://github.com/electron-userland/electron-installer-common/compare/v0.7.1...v0.7.2 | ||
### Added | ||
* Add `packagePaths` to `options` when calling `ElectronInstaller.movePackage()` (#36) | ||
## [0.7.1] - 2019-06-09 | ||
@@ -9,0 +17,0 @@ |
{ | ||
"name": "electron-installer-common", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Common functionality for creating distributable Electron apps", | ||
@@ -5,0 +5,0 @@ "author": "Mark Lee", |
@@ -213,2 +213,5 @@ 'use strict' | ||
* Move the package to the specified destination. | ||
* | ||
* Also adds `packagePaths` to `options`, which is an `Array` of the absolute paths to the | ||
* moved packages. | ||
*/ | ||
@@ -220,7 +223,8 @@ async movePackage () { | ||
const files = await glob(this.packagePattern) | ||
return Promise.all(files.map(async file => { | ||
this.options.packagePaths = await Promise.all(files.map(async file => { | ||
const renameTemplate = this.options.rename(this.options.dest, path.basename(file)) | ||
const dest = _.template(renameTemplate)(this.options) | ||
debug(`Moving file ${file} to ${dest}`) | ||
return fs.move(file, dest, { clobber: true }) | ||
await fs.move(file, dest, { clobber: true }) | ||
return dest | ||
})) | ||
@@ -227,0 +231,0 @@ }) |
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
37353
561