Pack the webapp into an asar

This commit is contained in:
David Baker
2019-12-10 15:54:17 +00:00
parent 2cfc96cca7
commit 672b846364
5 changed files with 60 additions and 13 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ const fs = require('fs').promises;
async function main() {
try {
const webappDir = await fs.opendir('webapp');
const webappDir = await fs.stat('webapp.asar');
return 0;
} catch (e) {
console.log("No 'webapp' directory found. Run 'yarn run fetch' or symlink manually");
console.log("No 'webapp.asar' found. Run 'yarn run fetch'");
return 1;
}
}