diff --git a/apps/reactotron-app/package.json b/apps/reactotron-app/package.json index 56634b606..31ae45b5b 100644 --- a/apps/reactotron-app/package.json +++ b/apps/reactotron-app/package.json @@ -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": { diff --git a/apps/reactotron-app/src/main/index.ts b/apps/reactotron-app/src/main/index.ts index a63591489..dfa56f5ff 100644 --- a/apps/reactotron-app/src/main/index.ts +++ b/apps/reactotron-app/src/main/index.ts @@ -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 { diff --git a/yarn.lock b/yarn.lock index e885d0d1f..d25022a07 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -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 @@ -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 @@ -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"