How to create a macro drag and drop program?

I created a jar file for a java application and now I want to create a drag and drop installer for it. I also want to know how to create a shortcut for the application folder for the same purpose. How can i do this?

+4
source share
4 answers

Seth Willits' DMG Canvas is a great and easy way to create custom DMGs (with shortcuts like application folder shortcut, background image, etc.). Yes, you can do it all with hdiutil and something else, but I prefer to use a graphical interface.

+3
source

You can pack .jar in .app (inside dmg that has drag and drop) with Javapackager like this:

 javapackager -deploy \ -title "YourTitle" \ -name "Name" \ -appclass your.class.start \ -native dmg \ -outdir ~/Downloads \ -outfile yourOutFileWithoutExtension \ -srcdir "SourceDir" 

you can use -srcfiles Your.jar if its only one jar.

+1
source

Use the Disk Utility or the hdiutil command-line hdiutil . Easier to integrate hdiutil into the auto build workflow.

0
source

You need to create a small disk image containing your application and a symbolic link to the Applications folder. Use Disk Utility or hdiutil to create an image. You can simply copy the application and create a symbolic link using the terminal:

 cd /Volumes/DiskImageName ln -s /Applications Applications 
0
source

Source: https://habr.com/ru/post/1305641/


All Articles