You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
580 B

  1. const cmdExists = require('command-exists')
  2. const os = require('os')
  3. module.exports = {
  4. key: 'puppeteer',
  5. title: 'Puppeteer',
  6. description: 'Headless chromium browser for server-side rendering. Required for generating PDF versions of pages and render content elements on the server (e.g. Mermaid diagrams)',
  7. async isCompatible () {
  8. return os.arch() === 'x64'
  9. },
  10. isInstalled: false,
  11. async check () {
  12. try {
  13. await cmdExists('pandoc')
  14. this.isInstalled = true
  15. } catch (err) {
  16. this.isInstalled = false
  17. }
  18. return this.isInstalled
  19. }
  20. }