Update macOS DMG creation logic and streamline artifact handling
All checks were successful
farmcontrol/farmcontrol-server/pipeline/head This commit looks good
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:
parent
0e19d25a92
commit
5c683ae576
@ -56,7 +56,7 @@ export default {
|
|||||||
watchIgnore: ["dist/**", "build/**", "app_dist/**"],
|
watchIgnore: ["dist/**", "build/**", "app_dist/**"],
|
||||||
mac: {
|
mac: {
|
||||||
bundleCEF: false,
|
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,
|
createDmg: false,
|
||||||
codesign: isStable && canCodesign,
|
codesign: isStable && canCodesign,
|
||||||
notarize: isStable && canCodesign,
|
notarize: isStable && canCodesign,
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import {
|
|||||||
readFileSync,
|
readFileSync,
|
||||||
rmSync,
|
rmSync,
|
||||||
statSync,
|
statSync,
|
||||||
symlinkSync,
|
|
||||||
} from "node:fs";
|
} from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { spawnSync } from "node:child_process";
|
import { spawnSync } from "node:child_process";
|
||||||
@ -198,7 +197,10 @@ function buildMacDmgWithCreateDmg(
|
|||||||
stagingDir,
|
stagingDir,
|
||||||
) {
|
) {
|
||||||
const appName = path.basename(appBundlePath);
|
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 });
|
rmSync(dmgPath, { force: true });
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user