2023-06-15 14:42:27 +00:00
|
|
|
const fs = require('node:fs');
|
|
|
|
const path = require('node:path');
|
2016-10-07 17:59:18 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
const stats = fs.statSync(path.join(__dirname, '..', 'test.asar', 'a.asar'));
|
2016-10-07 17:59:18 +00:00
|
|
|
|
|
|
|
const details = {
|
|
|
|
isFile: stats.isFile(),
|
|
|
|
size: stats.size
|
2020-03-20 20:28:31 +00:00
|
|
|
};
|
2016-10-07 17:59:18 +00:00
|
|
|
|
|
|
|
if (process.send != null) {
|
2020-03-20 20:28:31 +00:00
|
|
|
process.send(details);
|
2016-10-07 17:59:18 +00:00
|
|
|
} else {
|
2020-03-20 20:28:31 +00:00
|
|
|
console.log(JSON.stringify(details));
|
2016-10-07 17:59:18 +00:00
|
|
|
}
|