Skip to content

Commit

Permalink
fix(squirrel.windows): The base package release does not exist
Browse files Browse the repository at this point in the history
Closes #713
develar committed Sep 1, 2016
1 parent 1398af4 commit 3b1ad57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/targets/squirrelPack.ts
Original file line number Diff line number Diff line change
@@ -51,16 +51,16 @@ export interface SquirrelOptions {

export async function buildInstaller(options: SquirrelOptions, outputDirectory: string, setupExe: string, packager: WinPackager, appOutDir: string) {
const appUpdate = await packager.getTempFile("Update.exe")
const promises = [
await BluebirdPromise.all([
copy(path.join(options.vendorPath, "Update.exe"), appUpdate)
.then(() => packager.sign(appUpdate)),
remove(outputDirectory.replace(/\\/g, "/") + "/*-full.nupkg")
.then(() => ensureDir(outputDirectory))
]
])

if (options.remoteReleases) {
promises.push(syncReleases(outputDirectory, options))
await syncReleases(outputDirectory, options)
}
await BluebirdPromise.all(promises)

const embeddedArchiveFile = await packager.getTempFile("setup.zip")
const embeddedArchive = archiver("zip", {zlib: {level: options.packageCompressionLevel == null ? 6 : options.packageCompressionLevel}})

0 comments on commit 3b1ad57

Please sign in to comment.