fix electron build
This commit is contained in:
parent
f5406a69d9
commit
ac8b9c86cb
5 changed files with 31 additions and 7 deletions
3
app.js
3
app.js
|
|
@ -334,7 +334,7 @@ function init(mod) {
|
|||
// load modules
|
||||
lastmod(`${dir}/${root}`) && fs.readdirSync(`${dir}/${root}`).forEach(mdir => {
|
||||
const modpath = `${root}/${mdir}`;
|
||||
if (dir.charAt(0) === '.') return;
|
||||
if (dir.charAt(0) === '.' && !ENV.single) return;
|
||||
const stats = fs.lstatSync(`${mod.dir}/${modpath}`);
|
||||
if (!(stats.isDirectory() || stats.isSymbolicLink())) return;
|
||||
if (util.isfile(PATH.join(mod.dir,modpath,".disable"))) return;
|
||||
|
|
@ -771,6 +771,7 @@ function getCachedFile(file, fn) {
|
|||
} else {
|
||||
logger.log({update_cache:filePath});
|
||||
cacheData = fn(filePath);
|
||||
// console.log(`NEW_CACHE_FILE: ${cachePath}`);
|
||||
fs.writeFileSync(cachePath, cacheData);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue