Compare commits
3 commits
2f2dfe17e1
...
c99d9dac85
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c99d9dac85 | ||
|
|
3033d87a88 | ||
|
|
b506d5dd56 |
|
|
@ -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/
|
||||
|
|
|
|||
|
|
@ -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}`);
|
||||
});
|
||||
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue