Update macOS DMG creation logic and streamline artifact handling
All checks were successful
farmcontrol/farmcontrol-server/pipeline/head This commit looks good

- Modified electrobun.config.ts to clarify DMG creation status in comments.
- Replaced symlink with cpSync in finalize-desktop-artifacts.mjs to improve file handling during DMG creation, ensuring proper copying of application bundles.
This commit is contained in:
Tom Butcher 2026-08-01 22:18:22 +01:00
parent 0e19d25a92
commit 5c683ae576
2 changed files with 5 additions and 3 deletions

View File

@ -56,7 +56,7 @@ export default {
watchIgnore: ["dist/**", "build/**", "app_dist/**"],
mac: {
bundleCEF: false,
// DMG is built in finalize-desktop-artifacts (symlink staging saves disk).
// DMG is built in finalize-desktop-artifacts (Electrobun createDmg disabled).
createDmg: false,
codesign: isStable && canCodesign,
notarize: isStable && canCodesign,

View File

@ -6,7 +6,6 @@ import {
readFileSync,
rmSync,
statSync,
symlinkSync,
} from "node:fs";
import path from "node:path";
import { spawnSync } from "node:child_process";
@ -198,7 +197,10 @@ function buildMacDmgWithCreateDmg(
stagingDir,
) {
const appName = path.basename(appBundlePath);
symlinkSync(appBundlePath, path.join(stagingDir, appName), "dir");
cpSync(appBundlePath, path.join(stagingDir, appName), {
recursive: true,
dereference: true,
});
rmSync(dmgPath, { force: true });