All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Introduced `bundleCEF` configuration to control CEF bundling in the build process. - Updated `Jenkinsfile` to support separate builds for CEF and native applications on Windows and macOS. - Modified `build-macos.mjs` and `finalize-desktop-artifacts.mjs` to incorporate CEF bundling logic and adjust artifact naming accordingly. - Enhanced logging to indicate CEF bundling status during builds, improving transparency in the build process.
29 lines
798 B
JavaScript
29 lines
798 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 isBundleCefEnabled(
|
|
value = process.env.ELECTROBUN_BUNDLE_CEF,
|
|
) {
|
|
return ["1", "true", "yes"].includes(String(value || "").toLowerCase());
|
|
}
|
|
|
|
export function getReleaseArtifactName(version, arch, ext, options = {}) {
|
|
const cef =
|
|
typeof options === "boolean"
|
|
? options
|
|
: Boolean(options.cef ?? isBundleCefEnabled());
|
|
const cefSuffix = cef ? "-cef" : "";
|
|
return `farmcontrol-${version}-${arch}${cefSuffix}.${ext}`;
|
|
}
|