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
424 B

9 months ago
const fs = require('fs');
exports.default = async function afterbuild(context) {
9 months ago
// do not run when not on macOS
if (process.platform !== 'darwin') {
return;
}
console.log('AFTER BUILD', context);
9 months ago
const artifactPaths = context.artifactPaths
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
}