Creating nice dmg “installer” for Mac OS X

后端 未结 6 1636
深忆病人
深忆病人 2020-12-22 15:59

I\'ve made my first Qt application for Mac OS X. Now I want to create nice .dmg file that will allow user to easily install it. I am thinking about something like firefox ha

6条回答
  •  [愿得一人]
    2020-12-22 16:07

    Bringing this question up to date by providing this answer.

    appdmg is a simple, easy-to-use, open-source command line program that creates dmg-files from a simple json specification. Take a look at the readme at the official website:

    https://github.com/LinusU/node-appdmg

    Quick example:

    1. Install appdmg

      npm install -g appdmg
      
    2. Write a json file (spec.json)

      {
        "title": "Test Title",
        "background": "background.png",
        "icon-size": 80,
        "contents": [
          { "x": 192, "y": 344, "type": "file", "path": "TestApp.app" },
          { "x": 448, "y": 344, "type": "link", "path": "/Applications" }
        ]
      }
      
    3. Run program

      appdmg spec.json test.dmg
      

    (disclaimer. I'm the creator of appdmg)

提交回复
热议问题