Some checks reported errors
farmcontrol/farmcontrol-ui/pipeline/head Something is wrong with the build of this commit
- Created electrobun.config.ts to define application settings and build parameters. - Added build-macos.mjs script to handle macOS builds, including architecture targeting. - Introduced finalize-desktop-artifacts.mjs for managing post-build processes and artifact publishing. - Implemented pre-build.mjs for validating required files before the build process. - Added utility scripts for managing release artifacts and syncing views. - Established desktop-specific functionalities in the src/desktop directory, including app update handling and menu management. - Updated .gitignore to include dist directory and test results for cleaner repository management. - Introduced bun.lock for dependency management with Bun.
14 lines
504 B
JavaScript
14 lines
504 B
JavaScript
import { cpSync, mkdirSync, rmSync } from "node:fs";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
|
const buildDir = path.join(rootDir, "build");
|
|
const viewDir = path.join(rootDir, "dist", "mainview");
|
|
|
|
rmSync(viewDir, { recursive: true, force: true });
|
|
mkdirSync(viewDir, { recursive: true });
|
|
cpSync(buildDir, viewDir, { recursive: true });
|
|
|
|
console.log(`Synced renderer build to ${viewDir}`);
|