Skip to content

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

ci: fix build failures.

towfiqib1f4a58b3270
diff --git a/installers/linux/build-appimage.sh b/installers/linux/build-appimage.sh
index 4241523..c97fe7b 100644
--- a/installers/linux/build-appimage.sh
+++ b/installers/linux/build-appimage.sh
@@ -84,6 +84,10 @@ build_appimage() {
# For PRO edition, look for pluton-pro-linux-x64, for regular look for pluton-linux-x64
local DIST_NAME="$(echo "$OUTPUT_NAME" | tr '[:upper:]' '[:lower:]')"
local DIST_DIR="${ROOT_DIR}/dist/executables/${DIST_NAME}-${PLATFORM_ID}"
+
+ # Debug info
+ echo -e "${YELLOW}Looking for distribution directory: ${DIST_DIR}${NC}"
+
if [ ! -d "$DIST_DIR" ]; then
# Fallback to old location
DIST_DIR="${ROOT_DIR}/dist/${DIST_NAME}-${PLATFORM_ID}"
@@ -97,6 +101,9 @@ build_appimage() {
return 0
fi
+ echo -e "${YELLOW}Contents of distribution directory (${DIST_DIR}):${NC}"
+ ls -la "$DIST_DIR"
+
# Download appimagetool if not present (always use x86_64 version)
local APPIMAGETOOL="${SCRIPT_DIR}/appimagetool-${APPIMAGETOOL_ARCH}.AppImage"
if [ ! -f "$APPIMAGETOOL" ]; then
diff --git a/scripts/build-executables.js b/scripts/build-executables.js
index a5bae4d..79b2d62 100644
--- a/scripts/build-executables.js
+++ b/scripts/build-executables.js
@@ -770,6 +770,16 @@ 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`);
+ }
+
const executableDest = join(packageDir, config.executableName);
if (await fileExists(executableSource)) {
@@ -904,6 +914,17 @@ async function createDistributionPackages() {
}
console.log(`✅ Distribution package created: ${OUTPUT_NAME}-${platform}/`);
+
+ // Debug: List contents of the created package
+ try {
+ const files = await readdir(packageDir);
+ console.log(` 📂 Contents of ${packageDir}:`);
+ for (const f of files) {
+ console.log(` - ${f}`);
+ }
+ } catch (err) {
+ console.warn(` ⚠️ Could not list contents: ${err.message}`);
+ }
}
console.log("\n✅ All distribution packages created successfully");