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.
18 lines
453 B
JavaScript
18 lines
453 B
JavaScript
export function getReleaseVersion(packageJson) {
|
|
return packageJson.version;
|
|
}
|
|
|
|
export function getReleaseArch(platformArch = process.arch) {
|
|
if (platformArch === "arm64" || platformArch === "aarch64") {
|
|
return "arm64";
|
|
}
|
|
if (platformArch === "x64" || platformArch === "amd64") {
|
|
return "x64";
|
|
}
|
|
return platformArch;
|
|
}
|
|
|
|
export function getReleaseArtifactName(version, arch, ext) {
|
|
return `farmcontrol-${version}-${arch}.${ext}`;
|
|
}
|