Compare commits
3 commits
2f2dfe17e1
...
c99d9dac85
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c99d9dac85 | ||
|
|
3033d87a88 | ||
|
|
b506d5dd56 |
|
|
@ -40,6 +40,6 @@ appImage:
|
||||||
npmRebuild: false
|
npmRebuild: false
|
||||||
publish:
|
publish:
|
||||||
provider: generic
|
provider: generic
|
||||||
url: https://git.thethomaas.net/TheThomaas/electron-vite-app
|
url: https://git.thethomaas.net/TheThomaas/electron-vite-app/releases/download/latest/
|
||||||
electronDownload:
|
electronDownload:
|
||||||
mirror: https://npmmirror.com/mirrors/electron/
|
mirror: https://npmmirror.com/mirrors/electron/
|
||||||
|
|
|
||||||
|
|
@ -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(pth);
|
showNotification(`Download update path : ${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(info);
|
showNotification(`Error: ${info}`);
|
||||||
});
|
});
|
||||||
|
|
@ -4,6 +4,7 @@ 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 (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue