remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/apps/remixdesktop/afterbuild.js

18 lines
478 B

9 months ago
const fs = require('fs');
exports.default = async function afterbuild(context) {
9 months ago
// do not run when not on macOS or when not on CIRCLECI
if (process.platform !== 'darwin' || !process.env.CIRCLE_BRANCH) {
9 months ago
return;
}
console.log('AFTER BUILD', context);
9 months ago
const artifactPaths = context.artifactPaths
9 months ago
const dmgs = artifactPaths.filter((dmg) => dmg.endsWith('.dmg')).map((dmg) => `'${dmg}'`)
9 months ago
fs.writeFileSync('dmgs.json', JSON.stringify({ dmgs }, null, 2))
9 months ago
9 months ago
}