crotwell / gradle-macappbundle

A Gradle Plugin to create a Mac OSX .app application and dmg based on the project.
Apache License 2.0
94 stars 33 forks source link

About the dmg #52

Closed yangwuan55 closed 6 years ago

yangwuan55 commented 6 years ago

I want create a dmg for drag app to the Applications dir,how can I do for this? Thanks very much.

crotwell commented 6 years ago

Have you read the documentation on the wiki: https://github.com/crotwell/gradle-macappbundle/wiki/Intro

Do you have a problem setting up the configuration or running gradle createDmg?

yangwuan55 commented 6 years ago

I want like this... image

crotwell commented 6 years ago

Use a background image with your arrow like: backgroundImage = "doc/macbackground.png" the Applications folder will be liked as well. Also you can use appIconX, appIconY, appFolderX, and appFolderY to position them. You may also need to manually set backgroundImageWidth and backgroundImageHeight if the window is not sized correctly.

I probably should separate those two steps so a background image can be used without also linking Applications, hopefully in the next version.

yangwuan55 commented 6 years ago

Thanks! I will try it.

yangwuan55 commented 6 years ago

How to make the window height and width is current,I don't want the scrollbar. Thanks very very much... image

crotwell commented 6 years ago

The window should be sized to match the image, so try making the image larger.

Also, you may need to manually set backgroundImageWidth and backgroundImageHeight if the window is not sized correctly.

yangwuan55 commented 6 years ago

OK,it works well.Thanks very.