Skip to content

Commit

Permalink
fix(updater): add app-update.yaml file to perform updates (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDome authored Oct 1, 2022
1 parent a8b29fb commit 3b85a95
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions app-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
provider: github
repo: DistributionZ
owner: TheDome
vPrefixedTagName: false
4 changes: 4 additions & 0 deletions dev-app-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
provider: github
repo: DistributionZ
owner: TheDome
vPrefixedTagName: false
2 changes: 2 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ files:
filter:
- package.json
- app
extraResources:
- "app-update.yml"
publish: null
linux:
category: Utility
7 changes: 1 addition & 6 deletions main/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ if (isProd) {

await setupDev(isProd);

autoUpdater.setFeedURL({
provider: "github",
owner: "thedome",
repo: "distributionz",
});


autoUpdater.checkForUpdatesAndNotify();

await registerIPC();
Expand Down

0 comments on commit 3b85a95

Please sign in to comment.