Skip to content

Commit a2ad2e3

Browse files
zackshianderlu
authored andcommitted
fix: 解决 windows 下,打包安装后,安装的应用运行一次后, 自动更新到 Electron React Boilerplate 应用最新版本问题
原因是代码中有自动检查版本升级的内容,配置中应用ID指向了 Electron React Boilerplate. chore: TRTC 和 IM 升级到最新版本。
1 parent 07421d5 commit a2ad2e3

File tree

4 files changed

+26
-79
lines changed

4 files changed

+26
-79
lines changed

Electron/TRTCScenesDemo/TRTCEducation/app/main.dev.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,8 @@
99
* `./app/main.prod.js` using webpack. This gives us some performance wins.
1010
*/
1111
import { app, BrowserWindow, ipcMain } from 'electron';
12-
import { autoUpdater } from 'electron-updater';
13-
import log from 'electron-log';
1412
import MenuBuilder from './menu';
1513
let isInClass = false;
16-
export default class AppUpdater {
17-
constructor() {
18-
log.transports.file.level = 'info';
19-
autoUpdater.logger = log;
20-
autoUpdater.checkForUpdatesAndNotify();
21-
}
22-
}
2314

2415
let mainWindow: BrowserWindow | null = null;
2516

@@ -107,10 +98,6 @@ const createWindow = async () => {
10798

10899
const menuBuilder = new MenuBuilder(mainWindow);
109100
menuBuilder.buildMenu();
110-
111-
// Remove this if your app does not use auto updates
112-
// eslint-disable-next-line
113-
new AppUpdater();
114101
};
115102

116103
/**
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
{
2-
"name": "electron-react-boilerplate",
3-
"productName": "electron-react-boilerplate",
2+
"name": "TRTC-education-demo",
3+
"productName": "TRTC-Education-Demo",
44
"version": "1.1.0",
55
"description": "Electron application boilerplate based on React, React Router, Webpack, React Hot Loader for rapid application development",
66
"main": "./main.prod.js",
77
"author": {
8-
"name": "Electron React Boilerplate Maintainers",
9-
"email": "[email protected]",
10-
"url": "https://github.com/electron-react-boilerplate"
8+
"name": "Tencent Cloud TRTC",
9+
"url": "https://cloud.tencent.com/product/trtc"
1110
},
1211
"scripts": {
1312
"electron-rebuild": "node -r ../internals/scripts/BabelRegister.js ../internals/scripts/ElectronRebuild.js",
1413
"postinstall": "yarn electron-rebuild"
1514
},
16-
"license": "MIT",
17-
"dependencies": {}
15+
"license": "MIT"
1816
}

Electron/TRTCScenesDemo/TRTCEducation/package.json

Lines changed: 7 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "electron-react-boilerplate",
3-
"productName": "TRTC-EDUCATION-DEMO",
2+
"name": "TRTC-education-demo",
3+
"productName": "TRTC-Education-Demo",
44
"version": "1.1.0",
55
"description": "Electron application boilerplate based on React, React Router, Webpack, React Hot Loader for rapid application development",
66
"scripts": {
@@ -52,8 +52,8 @@
5252
]
5353
},
5454
"build": {
55-
"productName": "TRTC-EDUCATION-DEMO",
56-
"appId": "org.develar.ElectronReact",
55+
"productName": "TRTC-Education-Demo",
56+
"appId": "com.tencent.cloud.trtc-electron-education",
5757
"files": [
5858
"dist/",
5959
"node_modules/",
@@ -96,50 +96,16 @@
9696
"msi"
9797
]
9898
},
99-
"linux": {
100-
"target": [
101-
"deb",
102-
"rpm",
103-
"AppImage"
104-
],
105-
"category": "Development"
106-
},
10799
"directories": {
108100
"buildResources": "resources",
109101
"output": "release"
110-
},
111-
"publish": {
112-
"provider": "github",
113-
"owner": "electron-react-boilerplate",
114-
"repo": "electron-react-boilerplate",
115-
"private": false
116102
}
117103
},
118-
"repository": {
119-
"type": "git",
120-
"url": "git+https://github.com/electron-react-boilerplate/electron-react-boilerplate.git"
121-
},
122104
"author": {
123-
"name": "Electron React Boilerplate Maintainers",
124-
"email": "[email protected]",
125-
"url": "https://electron-react-boilerplate.js.org"
105+
"name": "Tencent Cloud TRTC",
106+
"url": "https://cloud.tencent.com/product/trtc"
126107
},
127-
"contributors": [
128-
{
129-
"name": "Vikram Rangaraj",
130-
"email": "[email protected]",
131-
"url": "https://github.com/vikr01"
132-
},
133-
{
134-
"name": "Amila Welihinda",
135-
"email": "[email protected]",
136-
"url": "https://github.com/amilajack"
137-
}
138-
],
139108
"license": "MIT",
140-
"bugs": {
141-
"url": "https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues"
142-
},
143109
"keywords": [
144110
"electron",
145111
"boilerplate",
@@ -152,7 +118,6 @@
152118
"hot",
153119
"reload"
154120
],
155-
"homepage": "https://github.com/electron-react-boilerplate/electron-react-boilerplate#readme",
156121
"jest": {
157122
"testURL": "http://localhost/",
158123
"moduleNameMapper": {
@@ -311,16 +276,13 @@
311276
"redux": "^4.0.5",
312277
"redux-thunk": "^2.3.0",
313278
"source-map-support": "^0.5.16",
314-
"trtc-electron-education": "1.2.0"
279+
"trtc-electron-education": "^1.2.1"
315280
},
316281
"devEngines": {
317282
"node": ">=7.x",
318283
"npm": ">=4.x",
319284
"yarn": ">=0.21.3"
320285
},
321-
"collective": {
322-
"url": "https://opencollective.com/electron-react-boilerplate-594"
323-
},
324286
"browserslist": [
325287
"extends browserslist-config-erb"
326288
],

Electron/TRTCScenesDemo/TRTCEducation/yarn.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14318,10 +14318,10 @@ thunky@^1.0.2:
1431814318
resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d"
1431914319
integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==
1432014320

14321-
tim-js-sdk@^2.6.5:
14322-
version "2.11.0"
14323-
resolved "https://registry.yarnpkg.com/tim-js-sdk/-/tim-js-sdk-2.11.0.tgz#dcc1a3728251e4bb593fd4cd17c45c1d728041e1"
14324-
integrity sha512-gV2HXuitkbtdTglEr+hBJSIMUyjDtRSqKXCbbVdQ2yWT1sqW0Wu5OvttFs2i8epvwYqhQMSnQtxoxs1vZIk/rg==
14321+
tim-js-sdk@^2.15.0:
14322+
version "2.15.0"
14323+
resolved "https://registry.yarnpkg.com/tim-js-sdk/-/tim-js-sdk-2.15.0.tgz#ec620fcf4586fd8c7914c2fbb6a407ba8139578e"
14324+
integrity sha512-WuqZ/gkdLiDT8zZLh95Lt7BjlXXOll7S3weF/+cJhKH8QAU/21m3jXfAxtMes6FRrWNDTUXI2HbRf4pVT6KAXA==
1432514325

1432614326
time-limit-promise@^1.0.2:
1432714327
version "1.0.4"
@@ -14523,18 +14523,18 @@ trough@^1.0.0:
1452314523
resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.5.tgz#b8b639cefad7d0bb2abd37d433ff8293efa5f406"
1452414524
integrity sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==
1452514525

14526-
14527-
version "1.2.0"
14528-
resolved "https://registry.yarnpkg.com/trtc-electron-education/-/trtc-electron-education-1.2.0.tgz#ad8206829e4c83ce50bd9212d76743ee48069faa"
14529-
integrity sha512-ZlgkUwse/RVh3dRF2iL0M46IJMxygRZGpm+HZB5wTFyi0qHlmzG16Q+FvUyapwuAtqpcAftPRL77aY5NDYdLTg==
14526+
trtc-electron-education@^1.2.1:
14527+
version "1.2.1"
14528+
resolved "https://registry.yarnpkg.com/trtc-electron-education/-/trtc-electron-education-1.2.1.tgz#cd1054a167cac5aba0dcf2cd5d76c05fadd6827b"
14529+
integrity sha512-DE4JTbUqsQnyBDSl8zBpUD5rt7XlsioHR4LWKBR9fb2GouLdRimd/d2PYdYhKg8V89aUaWgcC3La0aRWtdvx4g==
1453014530
dependencies:
14531-
tim-js-sdk "^2.6.5"
14532-
trtc-electron-sdk "^8.4.1"
14531+
tim-js-sdk "^2.15.0"
14532+
trtc-electron-sdk "^8.9.102"
1453314533

14534-
trtc-electron-sdk@^8.4.1:
14535-
version "8.6.101"
14536-
resolved "https://registry.yarnpkg.com/trtc-electron-sdk/-/trtc-electron-sdk-8.6.101.tgz#a71d16cbcf38e87776e3be1e6c555cd134378ab0"
14537-
integrity sha512-N5j/7qjfRi39XVQj87CZz5U0ohWznQjaHwsk37d9SCNCQDxw0N688vQuP6t4Zqhm4of9t0zqNcjsWdEiSfP6Ag==
14534+
trtc-electron-sdk@^8.9.102:
14535+
version "8.9.102"
14536+
resolved "https://registry.yarnpkg.com/trtc-electron-sdk/-/trtc-electron-sdk-8.9.102.tgz#9a141484194754133b0b71be99b66b2f9a463750"
14537+
integrity sha512-nW43sWqkwI5eRzR62LRyTspr0qkuSalxlpRTi/09dWj/5nvqdngKWVWsTth/+Z2RfUgupi3IAIanuF3im01nPA==
1453814538
dependencies:
1453914539
cos-nodejs-sdk-v5 "^2.8.2"
1454014540
download "^8.0.0"

0 commit comments

Comments
 (0)