text: /**
   * This is the template file that becomes index.js and it is used by node to create an electron window
   */
  "use strict";
  const debug = ${debug}; // disable or enable console
  Object.defineProperty(exports, "__esModule", { value: true });
  const electron_1 = require("electron");
  let mainWindow;
  function createWindow() {
      mainWindow = new electron_1.BrowserWindow({
          width: 1200,
          height: 800,
          title: "Internet Nomad",
          icon: "node_modules/bootstrap-icons/file-lock-fill.svg",
          webPreferences: {
              nodeIntegration: true,
              contextIsolation: false,
              //preload: path.join(__dirname, "preload.js"),
          },
      });
      mainWindow.loadFile(`${page}`); // path for electron to load
      mainWindow.removeMenu();
      if(debug) mainWindow.webContents.openDevTools();
  }
  // This method will be called when Electron has finished
  // initialization and is ready to create browser windows.
  // Some APIs can only be used after this event occurs.
  electron_1.app.on("ready", () => {
      createWindow();
      electron_1.app.on("activate", function () {
          // On macOS it's common to re-create a window in the app when the
          // dock icon is clicked and there are no other windows open.
          if (electron_1.BrowserWindow.getAllWindows().length === 0)
              createWindow();
      });
  });
  // Quit when all windows are closed, except on macOS. There, it's common
  // for applications and their menu bar to stay active until the user quits
  // explicitly with Cmd + Q.
  electron_1.app.on("window-all-closed", () => {
      if (process.platform !== "darwin") {
          electron_1.app.quit();
      }
  });
  