electron/spec/fixtures/module/no-asar.js
2020-03-20 13:28:31 -07:00

15 lines
307 B
JavaScript

const fs = require('fs');
const path = require('path');
const stats = fs.statSync(path.join(__dirname, '..', 'test.asar', 'a.asar'));
const details = {
isFile: stats.isFile(),
size: stats.size
};
if (process.send != null) {
process.send(details);
} else {
console.log(JSON.stringify(details));
}