"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const electron = require("electron");
const path = require("path");
const querystring = require("querystring");
const url = require("url");
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
let mainWindow = null;
const createWindow = () => {
    mainWindow = new BrowserWindow({
        icon: path.join(__dirname, '../../icons/icon.png'),
        width: 1400,
        height: 800,
        webPreferences: {
            nodeIntegration: true,
        },
    });
    mainWindow.loadURL(url.format({
        pathname: path.join(__dirname, '../../index.htm'),
        search: querystring.stringify({
            appDir: `${app.getAppPath().replace(/\\/g, '/')}/`,
        }),
        protocol: 'file:',
        slashes: true,
    }));
    mainWindow.on('closed', () => {
        mainWindow = null;
    });
};
app.on('ready', createWindow);
app.on('window-all-closed', () => {
    app.quit();
});
app.on('activate', () => {
    if (mainWindow === null) {
        createWindow();
    }
});
//# sourceMappingURL=launch-animator.js.map