Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Extracted `app.asar` file in resources:
  2. ```shell
  3. C:\Program Files (x86)\Test Runner (Azure Test Plans)\resources> npx asar extract app.asar app
  4. ```
  5.  
  6. Opened Main.js in `C:\Program Files (x86)\Test Runner (Azure Test Plans)\resources\app\lib\Main`
  7.  
  8. Added the lines:
  9. ```diff
  10. if (this.isSingleInstance()) {
  11. + electron_1.app.commandLine.appendSwitch('auth-server-whitelist', 'tfs.ourdomain.dk');
  12. + electron_1.app.commandLine.appendSwitch('auth-negotiate-delegate-whitelist', 'tfs.ourdomain.dk');
  13. this._uncaughtErrorHandler = inversify_config_1.inversifyContainer.get(CommonTypes_1.COMMONTYPES.IErrorHandler);
  14. this._ipcMainEventHandlers = inversify_config_1.inversifyContainer.get(CommonTypes_1.COMMONTYPES.IMainEventHandlers);
  15. this._ipcMainEventHandlers.initialize();
  16. }
  17. ```
  18.  
  19. Repacked app.asar
  20. ```shell
  21. C:\Program Files (x86)\Test Runner (Azure Test Plans)\resources> npx asar pack app app.asar
  22. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement