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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user