element-desktop/scripts/check-webapp.js

16 lines
320 B
JavaScript
Raw Normal View History

#!/usr/bin/env node
const fs = require('fs').promises;
async function main() {
try {
2019-12-10 15:54:17 +00:00
const webappDir = await fs.stat('webapp.asar');
return 0;
} catch (e) {
2019-12-10 15:54:17 +00:00
console.log("No 'webapp.asar' found. Run 'yarn run fetch'");
return 1;
}
}
main().then((ret) => process.exit(ret));