Skip to content

Commit 9915263

Browse files
feat(desktop): refresh macOS installer with aurora artwork (#10632)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7220dfe commit 9915263

4 files changed

Lines changed: 68 additions & 106 deletions

File tree

‎apps/desktop/resources/dmg/dmg-background-latest.svg‎

Lines changed: 26 additions & 29 deletions
Loading

‎apps/desktop/resources/dmg/dmg-background-nightly.svg‎

Lines changed: 25 additions & 59 deletions
Loading

‎scripts/build-desktop-artifact.test.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -665,12 +665,12 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
665665
assert.deepStrictEqual(mac.dmg, {
666666
title: "T3 Code (Alpha) 1.2.3 Installer",
667667
background: "dmg/dmg-background-latest.png",
668-
window: { width: 540, height: 412 },
668+
window: { width: 640, height: 432 },
669669
contents: [
670-
{ x: 130, y: 220, type: "file" },
671-
{ x: 410, y: 220, type: "link", path: "/Applications" },
670+
{ x: 166, y: 214, type: "file" },
671+
{ x: 474, y: 214, type: "link", path: "/Applications" },
672672
],
673-
iconSize: 80,
673+
iconSize: 120,
674674
iconTextSize: 12,
675675
});
676676
// Linux must register the renderer schemes so the generated .desktop
@@ -1640,8 +1640,8 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
16401640
"format",
16411641
"png",
16421642
"-z",
1643-
"380",
1644-
"540",
1643+
"432",
1644+
"640",
16451645
sourcePath,
16461646
"--out",
16471647
path.join(dmgDir, "dmg-background-nightly.png"),
@@ -1652,8 +1652,8 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
16521652
"format",
16531653
"png",
16541654
"-z",
1655-
"760",
1656-
"1080",
1655+
"864",
1656+
"1280",
16571657
sourcePath,
16581658
"--out",
16591659
path.join(dmgDir, "[email protected]"),

‎scripts/build-desktop-artifact.ts‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,8 +2418,8 @@ export const stageDesktopDmgBackground = Effect.fn("stageDesktopDmgBackground")(
24182418
}
24192419

24202420
for (const output of [
2421-
{ suffix: "", width: 540, height: 380 },
2422-
{ suffix: "@2x", width: 1080, height: 760 },
2421+
{ suffix: "", width: 640, height: 432 },
2422+
{ suffix: "@2x", width: 1280, height: 864 },
24232423
] as const) {
24242424
const targetPath = path.join(
24252425
stageResourcesDir,
@@ -2741,17 +2741,16 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
27412741
title: `${resolveDesktopProductName(version)} ${version} Installer`,
27422742
background: `dmg/dmg-background-${updateChannel}.png`,
27432743
window: {
2744-
width: 540,
2745-
// Finder counts its 32px title bar in the window bounds. The themed
2746-
// background itself is 380px tall, so add the chrome height here to
2747-
// keep the full canvas visible.
2748-
height: 412,
2744+
width: 640,
2745+
// The DMG backend derives bounds from the image, including Finder's
2746+
// 32px title bar. Keep the last 32px of the artwork free of content.
2747+
height: 432,
27492748
},
27502749
contents: [
2751-
{ x: 130, y: 220, type: "file" },
2752-
{ x: 410, y: 220, type: "link", path: "/Applications" },
2750+
{ x: 166, y: 214, type: "file" },
2751+
{ x: 474, y: 214, type: "link", path: "/Applications" },
27532752
],
2754-
iconSize: 80,
2753+
iconSize: 120,
27552754
iconTextSize: 12,
27562755
};
27572756
}

0 commit comments

Comments
 (0)