// Electrobun requires this filename; application code remains JavaScript.
export default {
  app: {
    name: "Farm Control Server",
    identifier: "com.tombutcher.farmcontrolserver",
    version: "1.0.0",
    description: "Farm Control Server desktop host application",
  },
  build: {
    buildFolder: "build",
    artifactFolder: "app_dist",
    bun: {
      entrypoint: "src/bun/index.js",
    },
    copy: {
      "dist/app/index.html": "views/mainview/index.html",
      "dist/app/assets": "views/mainview/assets",
      "config.json": "config.json",
    },
    watchIgnore: ["dist/**"],
    mac: {
      bundleCEF: false,
    },
    linux: {
      bundleCEF: false,
    },
    win: {
      bundleCEF: false,
    },
  },
  runtime: {
    exitOnLastWindowClosed: false,
  },
  scripts: {
    postPackage: "scripts/finalize-desktop-artifacts.mjs",
  },
};
