Closed geekytime closed 8 years ago
Here's my background image:
And my icon: netpegs-logo.icns.zip
And my config file:
{
"title": "NetPegs",
"icon": "netpegs-logo.icns",
"background": "installer-background.png",
"icon-size": 128,
"contents": [
{ "x": 318, "y": 200, "type": "file", "path": "./Builds/OSX/NetPegs.app" },
{ "x": 595, "y": 200, "type": "link", "path": "/Applications" }
]
}
Anyone have any obvious thoughts or suggestions before I start diving into source code? :frowning:
Could you start by cloning the repo and running the tests? That should help us locating the problem.
Here are the test results. Something certainly seems to be amiss:
Chriss-iMac:node-appdmg Chris$ npm run test
> appdmg@0.3.5 test /Users/Chris/dev/node-appdmg
> standard && mocha -b
api
1) creates an image from a modern specification
0 passing (14s)
1 failing
1) api creates an image from a modern specification:
Error: Image looks visually incorrect
at test/lib/visually-verify-image.js:31:10
at node_modules/looks-same/index.js:129:13
at node_modules/looks-same/index.js:67:13
Just for giggles, I uninstalled and reinstalled appdmg. I got some error:
messages from xcode-select, but the install succeeded:
Chriss-iMac:node-appdmg Chris$ npm install -g appdmg@latest
/usr/local/bin/appdmg -> /usr/local/lib/node_modules/appdmg/bin/appdmg
> macos-alias@0.2.9 install /usr/local/lib/node_modules/appdmg/node_modules/macos-alias
> node-gyp rebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
CXX(target) Release/obj.target/volume/src/volume.o
SOLINK_MODULE(target) Release/volume.node
> fs-xattr@0.1.11 install /usr/local/lib/node_modules/appdmg/node_modules/fs-xattr
> node-gyp rebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
CXX(target) Release/obj.target/xattr/src/error.o
CXX(target) Release/obj.target/xattr/src/xattr.o
SOLINK_MODULE(target) Release/xattr.node
/usr/local/lib
└─┬ appdmg@0.3.5
├── async@1.5.2
├─┬ ds-store@0.1.4
│ ├─┬ bplist-creator@0.0.6
│ │ └── stream-buffers@2.2.0
│ ├── macos-alias@0.2.9
│ └── unorm@1.3.3
├── fs-temp@1.0.0
├─┬ fs-xattr@0.1.11
│ └── nan@2.2.0
├── image-size@0.3.5
├── minimist@1.2.0
└── repeat-string@1.5.2
Obviously, I only have the xcode cli tools installed...
Pretty sure i am having the same issue over here! Installer background not showing on the dmg
Same issue here. Everything else seems to work fine: no error, files in right location and window is the size of the background image.
Thanks in advance for your help!
Okay, here's a clue: when I remove the @2x version from the folder, I will see the non-retina version of the background image fine.
Make sure to "eject" your old dmg's!!! That's what fixed this for me
Thanks, that fixed it for me!
I know!! I couldn't believe that that was it! Glad to hear that worked for you :)
FYI, I had the exact same problem, background and icon were in the dmg, but when mounting I get the white icon drive and my background was not visible.
Unmounting all dmg and usb didn't work, the solution was to reboot my mac... Yeah I know....
Same issue here, but how could resolve that, I don't understand
Error: Image looks visually incorrect???
Closing this as duplicate of #40
Make sure to "eject" your old dmg's!!! That's what fixed this for me
In case this helps others: I found that sometimes old dmgs can still be mounted but not shown in Finder (I think due to botched builds?). These can be unmounted in Disk Utility, finally letting the background update. I guess this is why a restart sometimes appears to be needed to fix this issue, as it unmounts these "hidden" dmgs. Unmounting them in Disk Utility avoids the need to restart.
Here's what my app looks like in the finder before I bundle it in the dmg:
Here's what my dmg looks like when I mount it:
The size of the background is about right, and the file exist inside the dmg, but that's not how it looked the last time I used appdmg. :smile_cat:
I'm also not sure how it could destroy my app's icon like that...