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

config.json... Help! #11

Open
jazzycamel opened this issue Sep 30, 2015 · 1 comment
Open

config.json... Help! #11

jazzycamel opened this issue Sep 30, 2015 · 1 comment

Comments

@jazzycamel
Copy link

I've successfully downloaded and built the tool on Mac and Windows and am now trying to create a test application with it. I have created an application on Mac which is a bundle with the following structure:

UpdateInstallerTestApp.app/
  - Contents/Info.plist
  - MacOS/
    - UpdateInstallerTestApp
  - PkgInfo
  - Resources/
    - empty.lproj

How would I go about composing a config.json file to represent this as I have tried quite a number of versions now and can't get anything to run, for example:

{
    "packages" : {
        "app" : [".*"]
    },

    "updater-binary" : "updater",

    "main-binary" : "UpdateInstallerTestApp.app"
}

yields the following error:

Generating package app
    zip warning: name not matched: /UpdateInstallerTestApp.app

zip error: Nothing to do! (/Users/rob/Documents/Qt5/UpdateInstallerTestApp/build/output/app.zip)
/Users/rob/Update-Installer/tools/create-packages.rb:375:in `block (2 levels) in <main>': Failed to generate package app (RuntimeError)
    from /Users/rob/Update-Installer/tools/create-packages.rb:373:in `chdir'
    from /Users/rob/Update-Installer/tools/create-packages.rb:373:in `block in <main>'
    from /Users/rob/Update-Installer/tools/create-packages.rb:333:in `each'
    from /Users/rob/Update-Installer/tools/create-packages.rb:333:in `<main>'

And no matter what I do with the packages section I can't make it happy! I appreciate I'm probably being immensely dense here, but some help for a newbie would be greatly appreciated.

Thanks a lot :)

@suy
Copy link

suy commented Dec 8, 2015

main-binary seems to be the main executable in the bundle, which would typically be the one in Contents/MacOS. Just use the name inside that directory.

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

2 participants