diff --git a/package.json b/package.json index 319adad3f38..6e7e5c73d01 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "archiver": "^1.1.0", "archiver-utils": "^1.3.0", "asar-electron-builder": "^0.13.5", - "bluebird": "^3.4.5", + "bluebird": "^3.4.6", "chalk": "^1.1.3", "chromium-pickle-js": "^0.2.0", "cli-cursor": "^1.0.2", diff --git a/src/targets/squirrelPack.ts b/src/targets/squirrelPack.ts index 6283becc8ff..19f4cf15389 100644 --- a/src/targets/squirrelPack.ts +++ b/src/targets/squirrelPack.ts @@ -54,7 +54,7 @@ export async function buildInstaller(options: SquirrelOptions, outputDirectory: await BluebirdPromise.all([ copy(path.join(options.vendorPath, "Update.exe"), appUpdate) .then(() => packager.sign(appUpdate)), - remove(outputDirectory.replace(/\\/g, "/") + "/*-full.nupkg") + BluebirdPromise.all([remove(`${outputDirectory.replace(/\\/g, "/")}/*-full.nupkg`), remove(path.join(outputDirectory, "RELEASES"))]) .then(() => ensureDir(outputDirectory)) ])