summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2019-10-01 16:28:06 +0200
committerLinus Färnstrand <linus@mullvad.net>2019-10-01 16:51:23 +0200
commit27da855d542f9e76a660ecba0319a280d313ee1b (patch)
tree8a8f76779709b96ea3490388bea99ed62cca87bf /gui
parente4391855ab7811ff4e4a9cc82b7f6d9297041966 (diff)
downloadmullvadvpn-27da855d542f9e76a660ecba0319a280d313ee1b.tar.xz
mullvadvpn-27da855d542f9e76a660ecba0319a280d313ee1b.zip
Use buildResult to get pkg path
Diffstat (limited to 'gui')
-rw-r--r--gui/tasks/distribution.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/gui/tasks/distribution.js b/gui/tasks/distribution.js
index c950a24950..393fc0d173 100644
--- a/gui/tasks/distribution.js
+++ b/gui/tasks/distribution.js
@@ -158,8 +158,6 @@ function packWin() {
function packMac() {
let appOutDir;
- let outDir;
- let appVersion;
return builder.build({
targets: builder.Platform.MAC.createTarget(),
@@ -167,13 +165,11 @@ function packMac() {
...config,
afterPack: (context) => {
appOutDir = context.appOutDir;
- outDir = context.outDir;
- appVersion = context.packager.appInfo.version;
return Promise.resolve();
},
afterAllArtifactBuild: (buildResult) => {
if (!noAppleNotarization) {
- notarizeMac(path.join(outDir, `MullvadVPN-${appVersion}.pkg`));
+ notarizeMac(buildResult.artifactPaths[0]);
}
// remove the folder that contains the unpacked app
return rimrafAsync(appOutDir);