Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Extracted `app.asar` file in resources:
- ```shell
- 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:
- ```diff
- 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
- ```shell
- C:\Program Files (x86)\Test Runner (Azure Test Plans)\resources> npx asar pack app app.asar
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement