lbry-desktop/build/afterAllArtifactBuild.js

13 lines
327 B
JavaScript
Raw Permalink Normal View History

2020-01-28 22:35:57 +01:00
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);
}
}
};