feat(desktop): refresh macOS installer with aurora artwork (#10632)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
7220dfe2c9
commit
991526383f
4 files changed
+68
-106
No files matched your search
@@ -665,12 +665,12 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
|
||||
assert.deepStrictEqual(mac.dmg, {
|
||||
title: "T3 Code (Alpha) 1.2.3 Installer",
|
||||
background: "dmg/dmg-background-latest.png",
|
||||
window: { width: 540, height: 412 },
|
||||
window: { width: 640, height: 432 },
|
||||
contents: [
|
||||
{ x: 130, y: 220, type: "file" },
|
||||
{ x: 410, y: 220, type: "link", path: "/Applications" },
|
||||
{ x: 166, y: 214, type: "file" },
|
||||
{ x: 474, y: 214, type: "link", path: "/Applications" },
|
||||
],
|
||||
iconSize: 80,
|
||||
iconSize: 120,
|
||||
iconTextSize: 12,
|
||||
});
|
||||
// Linux must register the renderer schemes so the generated .desktop
|
||||
@@ -1640,8 +1640,8 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
|
||||
"format",
|
||||
"png",
|
||||
"-z",
|
||||
"380",
|
||||
"540",
|
||||
"432",
|
||||
"640",
|
||||
sourcePath,
|
||||
"--out",
|
||||
path.join(dmgDir, "dmg-background-nightly.png"),
|
||||
@@ -1652,8 +1652,8 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
|
||||
"format",
|
||||
"png",
|
||||
"-z",
|
||||
"760",
|
||||
"1080",
|
||||
"864",
|
||||
"1280",
|
||||
sourcePath,
|
||||
"--out",
|
||||
path.join(dmgDir, "[email protected]"),
|
||||
|
||||
@@ -2418,8 +2418,8 @@ export const stageDesktopDmgBackground = Effect.fn("stageDesktopDmgBackground")(
|
||||
}
|
||||
|
||||
for (const output of [
|
||||
{ suffix: "", width: 540, height: 380 },
|
||||
{ suffix: "@2x", width: 1080, height: 760 },
|
||||
{ suffix: "", width: 640, height: 432 },
|
||||
{ suffix: "@2x", width: 1280, height: 864 },
|
||||
] as const) {
|
||||
const targetPath = path.join(
|
||||
stageResourcesDir,
|
||||
@@ -2741,17 +2741,16 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
|
||||
title: `${resolveDesktopProductName(version)} ${version} Installer`,
|
||||
background: `dmg/dmg-background-${updateChannel}.png`,
|
||||
window: {
|
||||
width: 540,
|
||||
// Finder counts its 32px title bar in the window bounds. The themed
|
||||
// background itself is 380px tall, so add the chrome height here to
|
||||
// keep the full canvas visible.
|
||||
height: 412,
|
||||
width: 640,
|
||||
// The DMG backend derives bounds from the image, including Finder's
|
||||
// 32px title bar. Keep the last 32px of the artwork free of content.
|
||||
height: 432,
|
||||
},
|
||||
contents: [
|
||||
{ x: 130, y: 220, type: "file" },
|
||||
{ x: 410, y: 220, type: "link", path: "/Applications" },
|
||||
{ x: 166, y: 214, type: "file" },
|
||||
{ x: 474, y: 214, type: "link", path: "/Applications" },
|
||||
],
|
||||
iconSize: 80,
|
||||
iconSize: 120,
|
||||
iconTextSize: 12,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user