Skip to content

Commit 0f0fbce

Browse files
committed
Merge remote-tracking branch 'upstream/GRO-1245' into automate-builds
2 parents f1f29c4 + eb18a0f commit 0f0fbce

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@
138138
{
139139
"from": "./release/app",
140140
"filter": "static/**"
141+
},
142+
{
143+
"from": "./src/loadingScreen/",
144+
"to": "loadingScreen"
141145
}
142146
],
143147
"publish": {
@@ -221,6 +225,7 @@
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",
@@ -257,7 +262,8 @@
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",
@@ -269,6 +275,7 @@
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",

src/main/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
});

src/renderer/actions/apps/os/proxy/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { 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

612
const applyProxy = (port) => {
713
const targetPort = port ? port : getCurrentProxyPort()

0 commit comments

Comments
 (0)