LinusU / node-appdmg

💾 Generate your app dmgs
MIT License
1.67k stars 151 forks source link

Unable to create DMG using path with space in app name #238

Open edwardvuong opened 3 weeks ago

edwardvuong commented 3 weeks ago

Environment:

NPM: 10.8.1
APPDMG: 0.6.6
OS: macOS 13.5.2

My config.json is setup as the following:

{
    "title": "My App",
    "icon": "./icon.icns",
    "background": "./bacground.png",
    "icon-size" : 94,
    "contents": [
        {
            "x": 408,
            "y": 212,
            "type": "link",
            "path": "/Applications"
        },
        {
            "x": 200,
            "y": 212,
            "type": "file",
            "path": "My App.app"
        }
    ]
}

These paths do not work, "path": "My App.app" "path": "My\\ App.app"

The console shows an error,

[15/21] Copying files...                     [FAIL]
Error: Command failed: cp -R .../My App.app

However, when creating a DMG with the same config without a space in the app file path, "path": "MyApp.app"

This is able to successfully build a DMG.