fvarrui / JavaPackager

:package: Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.
GNU General Public License v3.0
1.07k stars 133 forks source link

DMG installer is not generated #373

Closed zjor closed 1 year ago

zjor commented 1 year ago

I'm submitting a…

Short description of the issue/suggestion: Hi, I'm trying to generate a *.DMG package, it should be generated by default (as the documentation says), but I can't find it. This is my config:

            <plugin>
                <groupId>io.github.fvarrui</groupId>
                <artifactId>javapackager</artifactId>
                <version>1.7.5</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>package</goal>
                        </goals>
                        <configuration>
                            <mainClass>${exec.mainClass}</mainClass>
                            <bundleJre>true</bundleJre>
                            <generateInstaller>false</generateInstaller>
                            <administratorRequired>false</administratorRequired>
                            <customizedJre>false</customizedJre>
                            <platform>mac</platform>
                            <macConfig>
                                <appId>world.retvrn.esc</appId>
                                <icnsFile>${project.basedir}/src/main/resources/images/retvrn_logo.png</icnsFile>
                                <generateDmg>true</generateDmg>
                            </macConfig>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

Steps to reproduce the issue/enhancement:

  1. Run mvn clean package

What is the expected behavior? *.dmg file should be somewhere

What is the current behavior? target/${artifactid} contains the app, but not a *.dmg file.

Please tell us about your environment:

Other information (e.g. related issues, suggestions how to fix, links for us to have context)

fvarrui commented 1 year ago

Hi @zjor! Could you share JavaPackager output, please? I've seen that you are not providing a valid ICNS file

zjor commented 1 year ago

Hi @fvarrui ! Thank you for replying so fast!

This is the full output of mvn clean package: out.txt

fvarrui commented 1 year ago

Hi @zjor! Oh!! I've just realized that generateInstaller must be true in order to generate DMG

zjor commented 1 year ago

Thanks! That's true, also I needed to agree with a XCode license. Now everything works, thank you!