Compare commits

...

3 commits

Author SHA1 Message Date
TheThomaas c99d9dac85 Update latest version path 2026-01-26 09:44:07 +01:00
TheThomaas 3033d87a88 Update update notifications 2026-01-26 09:43:41 +01:00
TheThomaas b506d5dd56 Fix error on build 2026-01-26 09:43:25 +01:00
3 changed files with 4 additions and 3 deletions

View file

@ -40,6 +40,6 @@ appImage:
npmRebuild: false
publish:
provider: generic
url: https://git.thethomaas.net/TheThomaas/electron-vite-app
url: https://git.thethomaas.net/TheThomaas/electron-vite-app/releases/download/latest/
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/

View file

@ -99,7 +99,7 @@ autoUpdater.on("update-available", () => {
showNotification(`Update available. Current version ${app.getVersion()}`);
let pth = autoUpdater.downloadUpdate();
console.log(pth);
showNotification(pth);
showNotification(`Download update path : ${pth}`);
});
autoUpdater.on("update-not-available", () => {
@ -115,5 +115,5 @@ autoUpdater.on("update-downloaded", () => {
autoUpdater.on("error", (info) => {
console.log(info);
showNotification(info);
showNotification(`Error: ${info}`);
});

View file

@ -4,6 +4,7 @@ function Versions(): React.JSX.Element {
const [versions] = useState(window.electron.process.versions)
const [appVersion, setAppVersion] = useState()
// @ts-ignore (define in dts)
window.electron.getVersion().then(version => setAppVersion(version))
return (