Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

ci: fix windows build.

towfiqi2e43783200cd
diff --git a/scripts/build-executables.js b/scripts/build-executables.js
index 402774b..ee10341 100644
--- a/scripts/build-executables.js
+++ b/scripts/build-executables.js
@@ -799,14 +799,15 @@ async function createDistributionPackages() {
}
}
- // Special handling for Windows: pkg might output 'pluton-win.exe' instead of 'pluton-win-x64.exe'
- // when the target is 'node24-win-x64'
- if (
- platform === "win-x64" &&
- !(await fileExists(executableSource)) &&
- (await fileExists(join(pkgBuildsDir, `${OUTPUT_NAME}-win.exe`)))
- ) {
- executableSource = join(pkgBuildsDir, `${OUTPUT_NAME}-win.exe`);
+ // Special handling for Windows: pkg might output 'pluton.exe' or 'pluton-win.exe'
+ if (platform === "win-x64" && !(await fileExists(executableSource))) {
+ if (await fileExists(join(pkgBuildsDir, `${OUTPUT_NAME}.exe`))) {
+ executableSource = join(pkgBuildsDir, `${OUTPUT_NAME}.exe`);
+ } else if (
+ await fileExists(join(pkgBuildsDir, `${OUTPUT_NAME}-win.exe`))
+ ) {
+ executableSource = join(pkgBuildsDir, `${OUTPUT_NAME}-win.exe`);
+ }
}
const executableDest = join(packageDir, config.executableName);
@@ -979,6 +980,11 @@ async function createLinuxTarballs() {
t.startsWith("linux")
);
+ if (linuxTargets.length === 0) {
+ console.log("No Linux targets to compress, skipping...");
+ return;
+ }
+
for (const platform of linuxTargets) {
const sourceDir = join(executablesDir, `${OUTPUT_NAME}-${platform}`);
const tarballName = `${OUTPUT_NAME}-${platform}.tar.gz`;