electron-winstaller
Advanced tools
Comparing version 2.6.4 to 2.7.0
@@ -23,4 +23,4 @@ 'use strict'; | ||
log(`Using Mono: '${ monoExe }'`); | ||
log(`Using Wine: '${ wineExe }'`); | ||
log(`Using Mono: '${monoExe}'`); | ||
log(`Using Wine: '${wineExe}'`); | ||
} | ||
@@ -78,3 +78,3 @@ | ||
Object.assign(metadata, { | ||
exe: `${ appMetadata.name }.exe`, | ||
exe: `${appMetadata.name}.exe`, | ||
title: appMetadata.productName || appMetadata.name | ||
@@ -96,3 +96,3 @@ }, appMetadata); | ||
metadata.version = convertVersion(metadata.version); | ||
metadata.copyright = metadata.copyright || `Copyright © ${ new Date().getFullYear() } ${ metadata.authors || metadata.owners }`; | ||
metadata.copyright = metadata.copyright || `Copyright © ${new Date().getFullYear()} ${metadata.authors || metadata.owners}`; | ||
@@ -105,3 +105,3 @@ let templateData = yield fsUtils.readFile(_path2.default.join(__dirname, '..', 'template.nuspectemplate'), 'utf8'); | ||
log(`Created NuSpec file:\n${ nuspecContent }`); | ||
log(`Created NuSpec file:\n${nuspecContent}`); | ||
@@ -123,3 +123,3 @@ const nugetOutput = yield fsUtils.createTempDir('si-'); | ||
log((yield (0, _spawnPromise2.default)(cmd, args))); | ||
const nupkgPath = _path2.default.join(nugetOutput, `${ metadata.name }.${ metadata.version }.nupkg`); | ||
const nupkgPath = _path2.default.join(nugetOutput, `${metadata.name}.${metadata.version}.nupkg`); | ||
@@ -155,3 +155,3 @@ if (remoteReleases) { | ||
args.push('--signWithParams'); | ||
args.push(`/a /f "${ _path2.default.resolve(certificateFile) }" /p "${ certificatePassword }"`); | ||
args.push(`/a /f "${_path2.default.resolve(certificateFile)}" /p "${certificatePassword}"`); | ||
} | ||
@@ -178,5 +178,5 @@ | ||
if (metadata.productName || options.setupExe) { | ||
const setupPath = _path2.default.join(outputDirectory, options.setupExe || `${ metadata.productName }Setup.exe`); | ||
const setupPath = _path2.default.join(outputDirectory, options.setupExe || `${metadata.productName}Setup.exe`); | ||
const unfixedSetupPath = _path2.default.join(outputDirectory, 'Setup.exe'); | ||
log(`Renaming ${ unfixedSetupPath } => ${ setupPath }`); | ||
log(`Renaming ${unfixedSetupPath} => ${setupPath}`); | ||
yield fsUtils.rename(unfixedSetupPath, setupPath); | ||
@@ -186,6 +186,6 @@ } | ||
if (metadata.productName || options.setupMsi) { | ||
const msiPath = _path2.default.join(outputDirectory, options.setupMsi || `${ metadata.productName }Setup.msi`); | ||
const msiPath = _path2.default.join(outputDirectory, options.setupMsi || `${metadata.productName}Setup.msi`); | ||
const unfixedMsiPath = _path2.default.join(outputDirectory, 'Setup.msi'); | ||
if (yield fsUtils.fileExists(unfixedMsiPath)) { | ||
log(`Renaming ${ unfixedMsiPath } => ${ msiPath }`); | ||
log(`Renaming ${unfixedMsiPath} => ${msiPath}`); | ||
yield fsUtils.rename(unfixedMsiPath, msiPath); | ||
@@ -192,0 +192,0 @@ } |
@@ -28,3 +28,3 @@ 'use strict'; | ||
d(`Spawning ${ exe } ${ params.join(' ') }`); | ||
d(`Spawning ${exe} ${params.join(' ')}`); | ||
if (!opts) { | ||
@@ -63,3 +63,3 @@ proc = (0, _child_process.spawn)(exe, params); | ||
rejected = true; | ||
reject(new Error(`Failed with exit code: ${ code }\nOutput:\n${ stdout }`)); | ||
reject(new Error(`Failed with exit code: ${code}\nOutput:\n${stdout}`)); | ||
} | ||
@@ -66,0 +66,0 @@ }); |
@@ -0,0 +0,0 @@ Copyright (c) 2015 GitHub Inc. |
{ | ||
"name": "electron-winstaller", | ||
"version": "2.6.4", | ||
"version": "2.7.0", | ||
"description": "Module to generate Windows installers for Electron apps", | ||
@@ -22,3 +22,3 @@ "main": "./lib/index.js", | ||
"debug": "^2.2.0", | ||
"fs-extra": "^0.26.7", | ||
"fs-extra": "^2.1.2", | ||
"lodash.template": "^4.2.2", | ||
@@ -25,0 +25,0 @@ "temp": "^0.8.3" |
@@ -60,2 +60,3 @@ # Electron Installer | ||
| `setupIcon` | No | The ICO file to use as the icon for the generated Setup.exe | | ||
| `skipUpdateIcon` | No | Disables setting the icon of `Update.exe`. This can solve installation errors with the following message: "This application could not be started", when the setup is built on a non-Windows system. | | ||
| `setupExe` | No | The name to use for the generated Setup.exe file | | ||
@@ -62,0 +63,0 @@ | `setupMsi` | No | The name to use for the generated Setup.msi file | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
29948943
41
173
+ Addedfs-extra@2.1.2(transitive)
Updatedfs-extra@^2.1.2