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

Not an issue but a question #222

Open
simon88 opened this issue Feb 23, 2023 · 2 comments
Open

Not an issue but a question #222

simon88 opened this issue Feb 23, 2023 · 2 comments

Comments

@simon88
Copy link

simon88 commented Feb 23, 2023

Hi
I'm trying to specify the size of the windows but it's doesn't work, here is what I've done:

{
  "title": "test",
  "background": "2.png",
  "icon-size": 90,
  "window": {
    "size": {
        "width": 600,
        "height": 500,
    },
  },
  "contents": [
    { "x": 100, "y": 350, "type": "file", "path": "test.app" },
    { "x": 600, "y": 350, "type": "link", "path": "/Applications" }
  ]
}
@misterpropik
Copy link

did you find a solution?

@jozefizso
Copy link

This is the correct way to set window size for the DMG package.

You JSON must be fixed because it is not valid:

Error: Parse error on line 8:
... "height": 500,    },  },  "contents"
----------------------^
Expecting 'STRING', got '}'
{
    "title": "test",
    "background": "2.png",
    "icon-size": 90,
    "window": {
        "size": {
            "width": 600,
            "height": 500
        }
    },
    "contents": [
        {
            "x": 100,
            "y": 350,
            "type": "file",
            "path": "test.app"
        },
        {
            "x": 600,
            "y": 350,
            "type": "link",
            "path": "/Applications"
        }
    ]
}

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

3 participants