feat(desktop): configure DMG background image (#12284)

*  feat: configure DMG background image for macOS installer

*  feat(desktop): set DMG window size, icon positions, and retina DPI

* 🔧 chore(desktop): resize DMG background to 600x400 and adjust window/icon positions

* chore: update remote
This commit is contained in:
Innei
2026-02-13 01:06:43 +08:00
committed by GitHub
parent c11d6de7db
commit 2d1eec4482
3 changed files with 13 additions and 2 deletions

View File

@@ -200,6 +200,16 @@ const config = {
dmg: {
artifactName: '${productName}-${version}-${arch}.${ext}',
background: 'resources/dmg.png',
contents: [
{ type: 'file', x: 150, y: 240 },
{ type: 'link', path: '/Applications', x: 450, y: 240 },
],
iconSize: 80,
window: {
height: 400,
width: 600,
},
},
electronDownload: {
@@ -212,6 +222,7 @@ const config = {
// Ensure Next export assets are packaged
'dist/next/**/*',
'!resources/locales',
'!resources/dmg.png',
'!dist/next/docs',
'!dist/next/packages',
'!dist/next/.next/server/app/sitemap',

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB