Skip to content

Commit

Permalink
⬆️ upgrade nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
xcodebuild committed Dec 23, 2020
1 parent 51f72f4 commit a0fef6a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LightProxy",
"version": "1.1.41-beta-1",
"version": "1.1.41-beta-4",
"main": "./dist/main.js",
"__note": "This file is generated by scripts/sync-version.js"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LightProxy",
"version": "1.1.41-beta-3",
"version": "1.1.41-beta-4",
"license": "MIT",
"main": "./dist/main.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/update-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const systemType = os.type();
const SYSTEM_IS_MACOS = systemType === 'Darwin';

if (SYSTEM_IS_MACOS) {
shell.exec(`cd vendor/files/node && curl https://cdn.npm.taobao.org/dist/node/v14.9.0/node-v14.9.0-darwin-x64.tar.gz| tar -xz && mv node-*-darwin-x64/bin/node node-mac && rm -rf node-*-darwin-x64`);
shell.exec(`cd vendor/files/node && curl https://cdn.npm.taobao.org/dist/node/v14.15.3/node-v14.15.3-darwin-x64.tar.gz| tar -xz && mv node-*-darwin-x64/bin/node node-mac && rm -rf node-*-darwin-x64`);
} else {
shell.exec(`cd vendor/files/node && curl https://cdn.npm.taobao.org/dist/node/v14.9.0/win-x86/node.exe > node-win.exe`)
shell.exec(`cd vendor/files/node && curl https://cdn.npm.taobao.org/dist/node/v14.15.3/win-x86/node.exe > node-win.exe`)
}
1 change: 1 addition & 0 deletions src/renderer/extensions/whistle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ export class WhistleExntension extends Extension {
const { t } = useTranslation();

useEffect(() => {
logger.info('Register restart');
remote.powerMonitor.on('resume', () => {
logger.info('Restart whistle bacause resume');
this.startWhistle();
Expand Down
2 changes: 0 additions & 2 deletions vendor/whistle.scriptfile/lib/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const GLOBAL_VARS = [
'require',
];

process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;

/* eslint-disable no-console */
const TIMEOUT = 600;
const RULE_VALUE_RE = /^([\w\-.]+)(?:\((.+)\))?.*$/;
Expand Down

0 comments on commit a0fef6a

Please sign in to comment.