CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-update-electron-app

A drop-in module that adds autoUpdating capabilities to Electron apps

89

1.08x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "Evaluates use of update-electron-app to gate auto-update initialization to packaged, supported environments and defer setup until the Electron app is ready.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses initializer",
      "description": "Imports and calls updateElectronApp from update-electron-app instead of reimplementing update logic.",
      "max_score": 10
    },
    {
      "name": "Packaged guard",
      "description": "Checks app.isPackaged (or equivalent) before invoking updateElectronApp, skipping the call and returning the not-packaged reason when false.",
      "max_score": 20
    },
    {
      "name": "Platform allowlist",
      "description": "Allows updateElectronApp only when the platform is darwin or win32; blocks others such as linux with the unsupported-platform reason.",
      "max_score": 20
    },
    {
      "name": "Ready deferral",
      "description": "Awaits app.whenReady() before calling updateElectronApp so initialization aligns with the package's ready-time safeguards.",
      "max_score": 20
    },
    {
      "name": "No call when blocked",
      "description": "Ensures updateElectronApp is never invoked when packaged or platform checks fail, preventing unintended update attempts.",
      "max_score": 15
    },
    {
      "name": "Single invocation",
      "description": "When conditions are met, calls updateElectronApp exactly once and relies on its internal scheduling instead of duplicating polling logic.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-update-electron-app

tile.json