Compare commits

..

No commits in common. "c99d9dac85aafd3fe8d6115501e67a462126e010" and "2f2dfe17e11f516f66fa30d36b58107a53e2d610" have entirely different histories.

3 changed files with 3 additions and 4 deletions

View file

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

View file

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

View file

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