Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
- Updated electrobun.config.ts to include environment-based settings for macOS builds. - Added new build scripts for Windows and macOS, including support for architecture-specific builds. - Introduced scripts for cleaning build artifacts, managing dependencies, and ensuring core binaries are present. - Enhanced Jenkinsfile to integrate new build processes and improve artifact management. - Added new assets for application icons and installer configurations. - Implemented NSIS and MSI packaging scripts for Windows installer creation. - Updated package.json with new scripts for development and build processes, including post-installation tasks.
16 lines
480 B
JavaScript
16 lines
480 B
JavaScript
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
|
const buildNumber =
|
|
process.env.BUILD_NUMBER || process.env.VITE_BUILD_NUMBER || "dev";
|
|
|
|
const buildInfoPath = path.join(rootDir, "src/buildInfo.json");
|
|
|
|
await Bun.write(
|
|
buildInfoPath,
|
|
`${JSON.stringify({ buildNumber }, null, 2)}\n`,
|
|
);
|
|
|
|
console.log(`write-build-info: ${buildInfoPath} (buildNumber=${buildNumber})`);
|