text: const { app, BrowserWindow } = require('electron');
  let win;
  
  // Inicia eventos do Squirre
  if (handleSquirrelEvent(app)) {
      // squirrel event handled and app will exit in 1000ms, so don't do anything else
      return;
  }
  
  // Cria a janela do programa e inicializa o index do html
  function createWindow() {
      win = new BrowserWindow({
          width: 1100,
          height: 800,
          /*webPreferences: {
              nativeWindowOpen: true
          }*/
      });
      win.loadFile('index.html');
  
      //win.webContents.openDevTools();
  
      // Evento de fechar janelas
      win.on('closed', () => {
          win = null
      });
  }
  
  app.on('ready', createWindow);
  app.on('window-all-closed', () => {
      if (process.platform !== 'darwin') {
          app.quit();
      }
  });
  app.on('activate', () => {
      if (win === null) {
          createWindow();
      }
  });
  
  // Definição de função de Squirre
  function handleSquirrelEvent(application) {
      if (process.argv.length === 1) {
          return false;
      }
  
      const ChildProcess = require('child_process');
      const path = require('path');
  
      const appFolder = path.resolve(process.execPath, '..');
      const rootAtomFolder = path.resolve(appFolder, '..');
      const updateDotExe = path.resolve(path.join(rootAtomFolder, 'Update.exe'));
      const exeName = path.basename(process.execPath);
  
      const spawn = function(command, args) {
          let spawnedProcess, error;
          try {
              spawnedProcess = ChildProcess.spawn(command, args, {
                  detached: true
              });
          } catch (error) {}
          return spawnedProcess;
      };
  
      const spawnUpdate = function(args) {
          return spawn(updateDotExe, args);
      };
  
      const squirrelEvent = process.argv[1];
      switch (squirrelEvent) {
          case '--squirrel-install':
          case '--squirrel-updated':
              // Install desktop and start menu shortcuts
              spawnUpdate(['--createShortcut', exeName]);
  
              setTimeout(application.quit, 1000);
              return true;
              break;
          case '--squirrel-uninstall':
              // Remove desktop and start menu shortcuts
              spawnUpdate(['--removeShortcut', exeName]);
              setTimeout(application.quit, 1000);
              return true;
              break;
          case '--squirrel-obsolete':
              application.quit();
              return true;
              break;
      }
  };
  
  // Import de módulos específicos do projeto
  