Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: wire up auto-updates #1390

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/reactotron-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"reactotron-core-ui": "workspace:*",
"source-map-support": "^0.5.21",
"styled-components": "^6.1.0",
"update-electron-app": "^3.0.0",
"v8-compile-cache": "^2.4.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions apps/reactotron-app/src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import windowStateKeeper from "electron-window-state"
import createMenu from "./menu"
import { setupAndroidDeviceIPCCommands } from "./utils"

require("update-electron-app")()

const isDevelopment = process.env.NODE_ENV !== "production"

class AppUpdater {
Expand Down
23 changes: 22 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16168,6 +16168,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-base@npm:^0.3.0":
version: 0.3.0
resolution: "glob-base@npm:0.3.0"
Expand Down Expand Up @@ -18479,7 +18488,7 @@ __metadata:
languageName: node
linkType: hard

"is-url@npm:^1.2.4":
"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
Expand Down Expand Up @@ -26228,6 +26237,7 @@ __metadata:
styled-components: ^6.1.0
ts-jest: ^29.1.1
typescript: ^4.9.5
update-electron-app: ^3.0.0
v8-compile-cache: ^2.4.0
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -31045,6 +31055,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.3.0, update-notifier@npm:^2.5.0":
version: 2.5.0
resolution: "update-notifier@npm:2.5.0"
Expand Down