Skip to content

Commit

Permalink
adds and fixes autoupdater server
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsZiroy committed Jul 3, 2022
1 parent c793704 commit 7df0889
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ remoteMain.initialize();

export { screenService, authService, screenAuth };
const platform = `${os.platform()}_${os.arch()}`;
const version = app.getVersion();
const url = `${env.updateServer}/update/${platform}/${version}`;

const url = `${env.updateServer}/update/${platform}/${app.getVersion()}`;
autoUpdater.setFeedURL({ url });
autoUpdater.on("update-downloaded", (event, releaseNotes, releaseName) => {
const dialogOpts = {
Expand All @@ -46,6 +44,7 @@ autoUpdater.on("error", (message) => {
console.error("There was a problem updating the application");
console.error(message);
});
autoUpdater.checkForUpdates();
setInterval(() => {
autoUpdater.checkForUpdates();
}, 60000);
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "teckboard-companion",
"productName": "TECKboard Companion",
"version": "0.9.4",
"version": "0.9.5",
"description": "A complementary project for the TECKboards enabling TECKscreen discovery via MDNS in a beautiful desktop environment.",
"main": "./main.prod.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "teckboard-companion",
"productName": "TECKboard Companion",
"version": "0.9.4",
"version": "0.9.5",
"license": "UNLICENSED",
"description": "A complementary project for the TECKboards enabling TECKscreen discovery via MDNS in a beautiful desktop environment.",
"scripts": {
Expand Down

0 comments on commit 7df0889

Please sign in to comment.