no-asar.js 296 B

12345678910111213141516
  1. const fs = require('fs')
  2. const path = require('path')
  3. const stats = fs.statSync(path.join(__dirname, '..', 'asar', 'a.asar'))
  4. const details = {
  5. isFile: stats.isFile(),
  6. size: stats.size
  7. }
  8. if (process.send != null) {
  9. process.send(details)
  10. } else {
  11. console.log(JSON.stringify(details))
  12. }