Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 77 additions & 0 deletions apps/desktop/resources/dmg/dmg-background-signal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions scripts/build-desktop-artifact.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,17 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
"**/node_modules/.bin",
"**/node_modules/.bin/**",
]);
assert.deepStrictEqual(mac.dmg, {
title: "T3 Code (Alpha) 1.2.3 Installer",
background: "dmg/dmg-background-signal.png",
window: { width: 540, height: 380 },
contents: [
{ x: 130, y: 220, type: "file" },
{ x: 410, y: 220, type: "link", path: "/Applications" },
],
iconSize: 80,
iconTextSize: 12,
});
// Linux must register the renderer schemes so the generated .desktop
// entry advertises MimeType=x-scheme-handler/t3code; for OAuth deep links.
assert.deepStrictEqual((linux.linux as Record<string, unknown>).protocols, [
Expand Down
20 changes: 20 additions & 0 deletions scripts/build-desktop-artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,26 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
};
}

if (platform === "mac" && target === "dmg") {
buildConfig.dmg = {
// Give the themed installer its own Finder volume name. Finder caches
// DMG window backgrounds by volume name, so reusing a generic name can
// make a newly built background look unchanged during testing.
title: `${resolveDesktopProductName(version)} ${version} Installer`,
background: "dmg/dmg-background-signal.png",
window: {
width: 540,
height: 380,
},
contents: [
{ x: 130, y: 220, type: "file" },
{ x: 410, y: 220, type: "link", path: "/Applications" },
],
iconSize: 80,
iconTextSize: 12,
};
}

if (platform === "linux") {
buildConfig.linux = {
target: [target],
Expand Down
Loading