electron-builder-squirrel-windows
Advanced tools
Comparing version 11.5.0 to 11.6.1
@@ -25,3 +25,3 @@ "use strict"; | ||
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 () { | ||
}), (_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 () { | ||
return (0, (_fsExtraP || _load_fsExtraP()).ensureDir)(outputDirectory); | ||
@@ -43,5 +43,5 @@ })]); | ||
const version = convertVersion(options.version); | ||
const packageName = `${ options.name }-${ version }-full.nupkg`; | ||
const packageName = `${options.name}-${version}-full.nupkg`; | ||
const nupkgPath = _path.join(outputDirectory, packageName); | ||
const setupPath = _path.join(outputDirectory, setupExe || `${ options.name || options.productName }Setup.exe`); | ||
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)]); | ||
@@ -79,23 +79,23 @@ embeddedArchive.file(nupkgPath, { name: packageName }); | ||
const author = options.authors || options.owners; | ||
const copyright = options.copyright || `Copyright © ${ new Date().getFullYear() } ${ author }`; | ||
const copyright = options.copyright || `Copyright © ${new Date().getFullYear()} ${author}`; | ||
const nuspecContent = `<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> | ||
<metadata> | ||
<id>${ options.appId }</id> | ||
<version>${ version }</version> | ||
<title>${ options.productName }</title> | ||
<authors>${ author }</authors> | ||
<owners>${ options.owners || options.authors }</owners> | ||
<iconUrl>${ options.iconUrl }</iconUrl> | ||
<id>${options.appId}</id> | ||
<version>${version}</version> | ||
<title>${options.productName}</title> | ||
<authors>${author}</authors> | ||
<owners>${options.owners || options.authors}</owners> | ||
<iconUrl>${options.iconUrl}</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>${ options.description }</description> | ||
<copyright>${ copyright }</copyright>${ options.extraMetadataSpecs || "" } | ||
<description>${options.description}</description> | ||
<copyright>${copyright}</copyright>${options.extraMetadataSpecs || ""} | ||
</metadata> | ||
</package>`; | ||
(0, (_electronBuilderUtil || _load_electronBuilderUtil()).debug)(`Created NuSpec file:\n${ nuspecContent }`); | ||
archive.append(nuspecContent.replace(/\n/, "\r\n"), { name: `${ encodeURI(options.name).replace(/%5B/g, "[").replace(/%5D/g, "]") }.nuspec` }); | ||
(0, (_electronBuilderUtil || _load_electronBuilderUtil()).debug)(`Created NuSpec file:\n${nuspecContent}`); | ||
archive.append(nuspecContent.replace(/\n/, "\r\n"), { name: `${encodeURI(options.name).replace(/%5B/g, "[").replace(/%5D/g, "]")}.nuspec` }); | ||
//noinspection SpellCheckingInspection | ||
archive.append(`<?xml version="1.0" encoding="utf-8"?> | ||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> | ||
<Relationship Type="http://schemas.microsoft.com/packaging/2010/07/manifest" Target="/${ options.name }.nuspec" Id="Re0" /> | ||
<Relationship Type="http://schemas.microsoft.com/packaging/2010/07/manifest" Target="/${options.name}.nuspec" Id="Re0" /> | ||
<Relationship Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="/package/services/metadata/core-properties/1.psmdcp" Id="Re1" /> | ||
@@ -122,8 +122,8 @@ </Relationships>`.replace(/\n/, "\r\n"), { name: ".rels", prefix: "_rels" }); | ||
xmlns="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"> | ||
<dc:creator>${ author }</dc:creator> | ||
<dc:description>${ options.description }</dc:description> | ||
<dc:identifier>${ options.appId }</dc:identifier> | ||
<version>${ version }</version> | ||
<dc:creator>${author}</dc:creator> | ||
<dc:description>${options.description}</dc:description> | ||
<dc:identifier>${options.appId}</dc:identifier> | ||
<version>${version}</version> | ||
<keywords/> | ||
<dc:title>${ options.productName }</dc:title> | ||
<dc:title>${options.productName}</dc:title> | ||
<lastModifiedBy>NuGet, Version=2.8.50926.602, Culture=neutral, PublicKeyToken=null;Microsoft Windows NT 6.2.9200.0;.NET Framework 4</lastModifiedBy> | ||
@@ -148,3 +148,3 @@ </coreProperties>`.replace(/\n/, "\r\n"), { name: "1.psmdcp", prefix: "package/services/metadata/core-properties" }); | ||
if ((_electronBuilderUtil || _load_electronBuilderUtil()).debug.enabled) { | ||
(0, (_electronBuilderUtil || _load_electronBuilderUtil()).debug)(`Squirrel output: ${ out }`); | ||
(0, (_electronBuilderUtil || _load_electronBuilderUtil()).debug)(`Squirrel output: ${out}`); | ||
} | ||
@@ -158,3 +158,3 @@ const lines = out.split("\n"); | ||
} | ||
throw new Error(`Invalid output, cannot find last release entry, output: ${ out }`); | ||
throw new Error(`Invalid output, cannot find last release entry, output: ${out}`); | ||
}); | ||
@@ -161,0 +161,0 @@ |
@@ -55,3 +55,3 @@ "use strict"; | ||
return (0, (_bluebirdLstC || _load_bluebirdLstC()).coroutine)(function* () { | ||
(0, (_log || _load_log()).log)(`Building Squirrel.Windows for arch ${ (_electronBuilderCore || _load_electronBuilderCore()).Arch[arch] }`); | ||
(0, (_log || _load_log()).log)(`Building Squirrel.Windows for arch ${(_electronBuilderCore || _load_electronBuilderCore()).Arch[arch]}`); | ||
if (arch === (_electronBuilderCore || _load_electronBuilderCore()).Arch.ia32) { | ||
@@ -64,11 +64,11 @@ (0, (_log || _load_log()).warn)("For windows consider only distributing 64-bit or use nsis target, see https://github.com/electron-userland/electron-builder/issues/359#issuecomment-214851130"); | ||
const archSuffix = (0, (_electronBuilderCore || _load_electronBuilderCore()).getArchSuffix)(arch); | ||
const setupFileName = `${ appInfo.productFilename } Setup ${ version }${ archSuffix }.exe`; | ||
const installerOutDir = _path.join(_this.outDir, `win${ (0, (_electronBuilderCore || _load_electronBuilderCore()).getArchSuffix)(arch) }`); | ||
const setupFileName = `${appInfo.productFilename} Setup ${version}${archSuffix}.exe`; | ||
const installerOutDir = _path.join(_this.outDir, `win${(0, (_electronBuilderCore || _load_electronBuilderCore()).getArchSuffix)(arch)}`); | ||
const distOptions = yield _this.computeEffectiveDistOptions(); | ||
yield (0, (_squirrelPack || _load_squirrelPack()).buildInstaller)(distOptions, installerOutDir, setupFileName, packager, appOutDir); | ||
packager.dispatchArtifactCreated(_path.join(installerOutDir, setupFileName), _this, `${ appInfo.name }-Setup-${ version }${ archSuffix }.exe`); | ||
const packagePrefix = `${ appInfo.name }-${ (0, (_squirrelPack || _load_squirrelPack()).convertVersion)(version) }-`; | ||
packager.dispatchArtifactCreated(_path.join(installerOutDir, `${ packagePrefix }full.nupkg`), _this); | ||
packager.dispatchArtifactCreated(_path.join(installerOutDir, setupFileName), _this, `${appInfo.name}-Setup-${version}${archSuffix}.exe`); | ||
const packagePrefix = `${appInfo.name}-${(0, (_squirrelPack || _load_squirrelPack()).convertVersion)(version)}-`; | ||
packager.dispatchArtifactCreated(_path.join(installerOutDir, `${packagePrefix}full.nupkg`), _this); | ||
if (distOptions.remoteReleases != null) { | ||
packager.dispatchArtifactCreated(_path.join(installerOutDir, `${ packagePrefix }delta.nupkg`), _this); | ||
packager.dispatchArtifactCreated(_path.join(installerOutDir, `${packagePrefix}delta.nupkg`), _this); | ||
} | ||
@@ -87,3 +87,3 @@ packager.dispatchArtifactCreated(_path.join(installerOutDir, "RELEASES"), _this); | ||
if (info != null) { | ||
iconUrl = `https://github.com/${ info.user }/${ info.project }/blob/master/${ packager.relativeBuildResourcesDirname }/icon.ico?raw=true`; | ||
iconUrl = `https://github.com/${info.user}/${info.project}/blob/master/${packager.relativeBuildResourcesDirname}/icon.ico?raw=true`; | ||
} | ||
@@ -105,3 +105,3 @@ if (iconUrl == null) { | ||
iconUrl: iconUrl, | ||
extraMetadataSpecs: projectUrl == null ? null : `\n <projectUrl>${ projectUrl }</projectUrl>`, | ||
extraMetadataSpecs: projectUrl == null ? null : `\n <projectUrl>${projectUrl}</projectUrl>`, | ||
copyright: appInfo.copyright, | ||
@@ -125,4 +125,4 @@ packageCompressionLevel: packager.config.compression === "store" ? 0 : 9, | ||
} else { | ||
options.remoteReleases = `https://github.com/${ info.user }/${ info.project }`; | ||
(0, (_log || _load_log()).log)(`remoteReleases is set to ${ options.remoteReleases }`); | ||
options.remoteReleases = `https://github.com/${info.user}/${info.project}`; | ||
(0, (_log || _load_log()).log)(`remoteReleases is set to ${options.remoteReleases}`); | ||
} | ||
@@ -138,3 +138,3 @@ } | ||
if (name in options) { | ||
throw new Error(`Option ${ name } is ignored, do not specify it.`); | ||
throw new Error(`Option ${name} is ignored, do not specify it.`); | ||
} | ||
@@ -148,5 +148,5 @@ } | ||
if (msi != null && typeof msi !== "boolean") { | ||
throw new Error(`msi expected to be boolean value, but string '"${ msi }"' was specified`); | ||
throw new Error(`msi expected to be boolean value, but string '"${msi}"' was specified`); | ||
} | ||
} | ||
//# sourceMappingURL=squirrelWindows.js.map |
{ | ||
"name": "electron-builder-squirrel-windows", | ||
"version": "11.5.0", | ||
"version": "11.6.1", | ||
"main": "out/squirrelWindows.js", | ||
@@ -14,3 +14,3 @@ "author": "Vladimir Krivosheev", | ||
"dependencies": { | ||
"electron-builder-util": "~11.5.0", | ||
"electron-builder-util": "~11.6.1", | ||
"electron-builder-core": "~11.2.1", | ||
@@ -17,0 +17,0 @@ "bluebird-lst-c": "^1.0.6", |
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
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
55035
+ Addedelectron-builder-util@11.6.1(transitive)
- Removedelectron-builder-util@11.5.0(transitive)