Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
add update package properly
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Nov 13, 2023
1 parent 1df3699 commit 305a967
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hot-toast": "2.4.1",
"update-electron-app": "^3.0.0",
"zod": "3.22.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions frontend/apps/desktop/src/update.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import updateApp from 'update-electron-app'

export function setupUpdates() {
// We delay this work by 1s to ensure that the
// app doesn't have to worry about updating during launch
setTimeout(() => {
const updateApp = require('update-electron-app')

updateApp({
repo: 'MintterHypermedia/mintter',
updateInterval: '1 hour',
Expand Down
28 changes: 28 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4717,6 +4717,7 @@ __metadata:
react-hot-toast: 2.4.1
react-native-web-lite: 1.74.21
tamagui: 1.74.21
update-electron-app: ^3.0.0
vite: 4.4.9
vite-tsconfig-paths: 4.2.0
xvfb-maybe: 0.2.1
Expand Down Expand Up @@ -18665,6 +18666,15 @@ __metadata:
languageName: node
linkType: hard

"github-url-to-object@npm:^4.0.4":
version: 4.0.6
resolution: "github-url-to-object@npm:4.0.6"
dependencies:
is-url: ^1.1.0
checksum: 5056c1197cd496e2246217bc2626ab0d10a8dd293c834cb5301181db86282c312dc91831e331933c0b02e75716c87b1c13d8d202dc314d0d23cca0c38f1afb6f
languageName: node
linkType: hard

"glob-parent@npm:^5.1.2, glob-parent@npm:~5.1.2":
version: 5.1.2
resolution: "glob-parent@npm:5.1.2"
Expand Down Expand Up @@ -20829,6 +20839,13 @@ __metadata:
languageName: node
linkType: hard

"is-url@npm:^1.1.0, is-url@npm:^1.2.4":
version: 1.2.4
resolution: "is-url@npm:1.2.4"
checksum: 100e74b3b1feab87a43ef7653736e88d997eb7bd32e71fd3ebc413e58c1cbe56269699c776aaea84244b0567f2a7d68dfaa512a062293ed2f9fdecb394148432
languageName: node
linkType: hard

"is-utf8@npm:^0.2.0":
version: 0.2.1
resolution: "is-utf8@npm:0.2.1"
Expand Down Expand Up @@ -31417,6 +31434,17 @@ __metadata:
languageName: node
linkType: hard

"update-electron-app@npm:^3.0.0":
version: 3.0.0
resolution: "update-electron-app@npm:3.0.0"
dependencies:
github-url-to-object: ^4.0.4
is-url: ^1.2.4
ms: ^2.1.1
checksum: 17b8250a3d8e9b31318d715fd2033e044b3755a257cc941a04c4d3df895f36fe94eca3381e716a89abb0ebf38f51243819fdaa517f66c89094f0eca86141aa67
languageName: node
linkType: hard

"update-notifier@npm:^2.1.0":
version: 2.5.0
resolution: "update-notifier@npm:2.5.0"
Expand Down

0 comments on commit 305a967

Please sign in to comment.