Extracted app.asar
file in resources:
C:\Program Files (x86)\Test Runner (Azure Test Plans)\resources> npx asar extract app.asar app
Opened Main.js in C:\Program Files (x86)\Test Runner (Azure Test Plans)\resources\app\lib\Main
Added the lines:
if (this.isSingleInstance()) {
+ electron_1.app.commandLine.appendSwitch('auth-server-whitelist', 'tfs.ourdomain.dk');
+ electron_1.app.commandLine.appendSwitch('auth-negotiate-delegate-whitelist', 'tfs.ourdomain.dk');
this._uncaughtErrorHandler = inversify_config_1.inversifyContainer.get(CommonTypes_1.COMMONTYPES.IErrorHandler);
this._ipcMainEventHandlers = inversify_config_1.inversifyContainer.get(CommonTypes_1.COMMONTYPES.IMainEventHandlers);
this._ipcMainEventHandlers.initialize();
}
Repacked app.asar
C:\Program Files (x86)\Test Runner (Azure Test Plans)\resources> npx asar pack app app.asar