delete mac files
This commit is contained in:
parent
862bb71ce5
commit
7fcb8484e8
2 changed files with 14 additions and 1 deletions
12
build/afterAllArtifactBuild.js
Normal file
12
build/afterAllArtifactBuild.js
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
|
@ -97,5 +97,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"artifactName": "${productName}_${version}.${ext}",
|
"artifactName": "${productName}_${version}.${ext}",
|
||||||
"afterSign": "./build/afterSignHook.js"
|
"afterSign": "./build/afterSignHook.js",
|
||||||
|
"afterAllArtifactBuild": "./build/afterAllArtifactBuild.js"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue