File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
renderer/actions/apps/os/proxy Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 138138 {
139139 "from" : " ./release/app" ,
140140 "filter" : " static/**"
141+ },
142+ {
143+ "from" : " ./src/loadingScreen/" ,
144+ "to" : " loadingScreen"
141145 }
142146 ],
143147 "publish" : {
221225 "@types/terser-webpack-plugin" : " ^5.0.4" ,
222226 "@types/uuid" : " ^10.0.0" ,
223227 "@types/webpack-env" : " ^1.16.3" ,
228+ "@types/ws" : " ^8.5.13" ,
224229 "browserslist-config-erb" : " ^0.0.3" ,
225230 "chalk" : " ^4.1.2" ,
226231 "concurrently" : " ^6.3.0" ,
257262 "webpack-bundle-analyzer" : " ^4.5.0" ,
258263 "webpack-cli" : " ^4.9.0" ,
259264 "webpack-dev-server" : " ^4.3.1" ,
260- "webpack-merge" : " ^5.8.0"
265+ "webpack-merge" : " ^5.8.0" ,
266+ "source-map-support" : " ^0.5.21"
261267 },
262268 "dependencies" : {
263269 "@devicefarmer/adbkit" : " ^3.2.6" ,
269275 "@sinclair/typebox" : " ^0.34.25" ,
270276 "@vscode/sudo-prompt" : " ^9.3.1" ,
271277 "address" : " ^2.0.3" ,
278+ "agent-base" : " ^6.0.2" ,
272279 "assert" : " ^2.0.0" ,
273280 "async" : " ^3.2.1" ,
274281 "axios" : " ^0.28.0" ,
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ app.on("ready", () => {
429429 }
430430 } ) ;
431431 loadingScreenWindow . loadURL (
432- `file://${ path . resolve ( __dirname , "../ loadingScreen/ " , "index.html" ) } `
432+ `file://${ path . resolve ( process . resourcesPath , "loadingScreen" , "index.html" ) } `
433433 ) ;
434434 loadingScreenWindow . show ( ) ;
435435} ) ;
Original file line number Diff line number Diff line change 11import { getCurrentProxyPort } from "renderer/actions/storage/cacheUtils" ;
22
3- const { applyProxyOsx, removeProxyOsx } = require ( "./osx" ) ;
4- const { applyProxyWindows, removeProxyWindows } = require ( "./windows" ) ;
3+ let applyProxyOsx , removeProxyOsx , applyProxyWindows , removeProxyWindows ;
4+
5+ if ( process . platform === "darwin" ) {
6+ ( { applyProxyOsx, removeProxyOsx } = require ( "./osx" ) ) ;
7+ }
8+ else if ( process . platform === "win32" ) {
9+ ( { applyProxyWindows, removeProxyWindows } = require ( "./windows" ) ) ;
10+ }
511
612const applyProxy = ( port ) => {
713 const targetPort = port ? port : getCurrentProxyPort ( )
You can’t perform that action at this time.
0 commit comments