electron-installer-dmg icon indicating copy to clipboard operation
electron-installer-dmg copied to clipboard

Background image just shows white

Open chris-pikul opened this issue 6 years ago • 15 comments

I've created a png background image to the exact size (658 × 498) of the one provided from here (even matched color profile and no alpha channel). I then ran the option threw and it built with no errors or warnings. Actually I built once and it threw an error because I misspelled the filename, then corrected and it built successfully, so I know it's looking for it and must have found it. But on testing the resulting DMG the background is plain white, no black border from the template either. Just white. Any ideas why this would happen?

Version: 0.2.1 Node Version: 6.4.0

chris-pikul avatar Sep 15 '17 11:09 chris-pikul

Facing a similar problem. The app just shows white background. Anyone with a fix.

aqibn avatar Sep 16 '17 09:09 aqibn

I'm having the same problem. Using a PNG file.

matheussige avatar Jan 19 '18 13:01 matheussige

I'm using an image and I'm not seeing an issue; what is your command? Mine is electron-installer-dmg dist/path/to/app myApp --overwrite --background='./installer/mac/installBackground.jpg' --icon='./installer/mac/path/to/icon

Version: 0.2.1 Node: 6.13.1

alexanderturinske avatar Apr 27 '18 19:04 alexanderturinske

Same here, On Yosemite, i tried with png and jpg, only white background

JimZeeKing avatar May 04 '18 19:05 JimZeeKing

This is working great for the company I work for.

screenshot 2018-05-19 19 39 18

We're using Electron Forge but it's just using electron-installer-dmg under the hood. Here are our Electron Forge settings:

"electronInstallerDMG": {
  "icon": "icons/cntral_desktop_icon.icns",
  "background": "icons/cntral_desktop_dmg_background.png"
},

The background we're using is a PNG with 658 × 489 dimensions.

So it's likely a configuration issue because the library is working correctly.

Versions

electron-installer-dmg: 0.2.1
electron-forge: 5.2.2
macOS High Sierra: 10.13.4

joshuapinter avatar May 20 '18 01:05 joshuapinter

change the background png filename to installBackground.png, and it worked.

Mac os:10.13.5

imzengyang avatar Jul 12 '18 09:07 imzengyang

@imzengyang What was it before?

joshuapinter avatar Jul 12 '18 15:07 joshuapinter

Make sure you "eject" the DMG from your finder sidebar after you make changes, otherwise the background image won't update

ryanbadger avatar Sep 08 '18 15:09 ryanbadger

Actually, I am seeing this problem intermittently; sometimes the installer background is my image, sometimes it is white. I cannot reproduce the issue consistently and the filename is install-background.png.

alexanderturinske avatar Sep 17 '18 21:09 alexanderturinske

Make sure you "eject" the DMG from your finder sidebar after you make changes, otherwise the background image won't update

It works for me

skykingit avatar Jan 03 '19 10:01 skykingit

In my case, don't use Chinese title. Just English !

ouyanx avatar Oct 17 '20 06:10 ouyanx

In my case, don't use Chinese title. Just English !

I try add some version info at the end of title, the background works. you can have a try.

Neugls avatar Dec 02 '21 07:12 Neugls

In my case, don't use Chinese title. Just English !

works for me

WhisperKarl avatar Apr 15 '22 09:04 WhisperKarl

In my case, don't use Chinese title. Just English !

works for me

leoxoocanada avatar Sep 19 '22 11:09 leoxoocanada

In my case, don't use Chinese title. Just English !

works for me, but it seems like a bug...

Suvern avatar Sep 06 '23 09:09 Suvern