Skip to content

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

Description

@edwardvuong

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions