delete mac files

This commit is contained in:
Sean Yesmunt 2020-01-28 16:35:57 -05:00
parent 862bb71ce5
commit 7fcb8484e8
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,12 @@
const fs = require('fs');
module.exports = async function(params) {
const { artifactPaths } = params;
for (var i = 0; i < artifactPaths.length; i++) {
const artifactPath = artifactPaths[i];
if (artifactPath.includes('.blockmap') || artifactPath.includes('.zip')) {
fs.unlinkSync(artifactPath);
}
}
};

View file

@ -97,5 +97,6 @@
]
},
"artifactName": "${productName}_${version}.${ext}",
"afterSign": "./build/afterSignHook.js"
"afterSign": "./build/afterSignHook.js",
"afterAllArtifactBuild": "./build/afterAllArtifactBuild.js"
}