Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
- 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.
18 lines
460 B
JavaScript
18 lines
460 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-server-${version}-${arch}.${ext}`;
|
|
}
|