farmcontrol-server/electrobun.config.ts
Tom Butcher f3ae50c788
Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
Add Windows MSI packaging and finalize desktop artifacts script
- Introduced a new Windows Installer XML (WXS) file for packaging the Farm Control Server as an MSI.
- Added a PowerShell script to build the MSI from the WXS file.
- Implemented a new script to finalize desktop artifacts, handling the publication of macOS and Windows packages.
- Updated the Linux build script to improve artifact naming and organization.
- Enhanced the Electrobun configuration to include a post-package script for finalizing desktop artifacts.
2026-07-28 22:37:38 +01:00

38 lines
866 B
TypeScript

// 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: "bun scripts/finalize-desktop-artifacts.mjs",
},
};