chore: Bump version to 1.0.3 and enhance update handling in the desktop application. Introduce release date stamping before build, add version listing functionality, and improve update prompts with detailed version information. Update README and scripts for clarity on release date management and version publishing.

This commit is contained in:
erik
2026-07-11 01:02:00 -05:00
parent c8853de808
commit f355a954a3
17 changed files with 917 additions and 56 deletions
+9 -8
View File
@@ -47,19 +47,20 @@ function sendUpdateProgress(payload) {
}
ipcMain.handle("updater:check", async () => {
if (!app.isPackaged) {
return {
updateAvailable: false,
currentVersion: appVersion,
error: "Auto-update desactivado en desarrollo",
};
}
return autoUpdate.checkForUpdates();
});
ipcMain.handle("updater:release-meta", async () => {
return autoUpdate.getCurrentReleaseMeta();
});
ipcMain.handle("updater:list-versions", async () => {
return autoUpdate.listVersions();
});
ipcMain.handle("updater:install", async (_event, manifest) => {
if (!app.isPackaged) {
throw new Error("Auto-update solo disponible en la app instalada");
throw new Error("Instalar actualizaciones solo está disponible en la app instalada");
}
return autoUpdate.downloadAndInstall(manifest, sendUpdateProgress);
});