()
| 180 | .replace(/\.\d+Z$/, "Z"); |
| 181 | |
| 182 | const buildManifest = () => { |
| 183 | const settings = getServerSettings(); |
| 184 | const executorLogs = join(app.getPath("home"), ".executor", "logs"); |
| 185 | return { |
| 186 | generated: new Date().toISOString(), |
| 187 | app: app.getName(), |
| 188 | runId, |
| 189 | version: app.getVersion(), |
| 190 | packaged: app.isPackaged, |
| 191 | platform: process.platform, |
| 192 | arch: process.arch, |
| 193 | versions: process.versions, |
| 194 | uptimeSeconds: Math.round(process.uptime()), |
| 195 | errorReportingEnabled, |
| 196 | paths: { |
| 197 | userData: app.getPath("userData"), |
| 198 | logs: dirname(log.transports.file.getFile().path), |
| 199 | executorLogs, |
| 200 | crashDumps: app.getPath("crashDumps"), |
| 201 | }, |
| 202 | // The bearer token is never included — it stays in auth.json on the machine. |
| 203 | serverSettings: { |
| 204 | port: settings.port, |
| 205 | }, |
| 206 | }; |
| 207 | }; |
| 208 | |
| 209 | /** |
| 210 | * Pack manifest + electron-log files + sidecar log + crash dumps into |
no test coverage detected