Files
dd-timer/src/infrastructure/update/GiteaUpdateAdapter.ts
POL Mickaël 3e485fd09b chore: normalise fins de ligne CRLF → LF dans tout le repo
Applique .gitattributes sur tous les fichiers existants.
Élimine les différences fantômes entre WSL et Windows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 08:55:10 +02:00

17 lines
503 B
TypeScript
Executable File

import type { UpdatePort, UpdateInfo } from '@domain/ports/UpdatePort';
export class GiteaUpdateAdapter implements UpdatePort {
async checkForUpdates(): Promise<UpdateInfo | null> {
// Delegated to main process via IPC in the actual Electron app
// This is a placeholder — the real check happens in main.ts
return null;
}
downloadAndInstall(info: UpdateInfo): void {
const api = (window as any).electronAPI;
if (api?.installUpdate) {
api.installUpdate();
}
}
}