Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background image just shows white #23

Open
chris-pikul opened this issue Sep 15, 2017 · 15 comments
Open

Background image just shows white #23

chris-pikul opened this issue Sep 15, 2017 · 15 comments

Comments

@chris-pikul
Copy link

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

@aqibn
Copy link

aqibn commented Sep 16, 2017

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

@matheussige
Copy link

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

@alexanderturinske
Copy link
Contributor

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

@JimZeeKing
Copy link

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

@joshuapinter
Copy link
Contributor

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

@imzengyang
Copy link

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

Mac os:10.13.5

@joshuapinter
Copy link
Contributor

@imzengyang What was it before?

@ryanbadger
Copy link

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

@alexanderturinske
Copy link
Contributor

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.

@skykingit
Copy link

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

@ouyanx
Copy link

ouyanx commented Oct 17, 2020

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

@Neugls
Copy link

Neugls commented Dec 2, 2021

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.

@WhisperKarl
Copy link

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

works for me

1 similar comment
@leoxoocanada
Copy link

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

works for me

@Suvern
Copy link

Suvern commented Sep 6, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests