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

How to reduce jpackage size ? #129

Open
pradeepsimba opened this issue Jul 2, 2022 · 3 comments
Open

How to reduce jpackage size ? #129

pradeepsimba opened this issue Jul 2, 2022 · 3 comments
Labels
question Further information is requested

Comments

@pradeepsimba
Copy link

I build a jpackage for my application.

But , the size of my jpackage is 120 MB.

How can I reduce the size of jpackage ?

@hakanai
Copy link
Collaborator

hakanai commented Jan 15, 2023

What's your current configuration? Not giving us much to go on here.

@hakanai hakanai added the question Further information is requested label Jan 15, 2023
@schmulschubiak
Copy link

You can try to set options for jLink to not to deliver header files or man pages of jdk

runtime {
   options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
   [...]
}

@pradeepsimba
Copy link
Author

pradeepsimba commented Jan 31, 2023

You can try to set options for jLink to not to deliver header files or man pages of jdk

runtime {
   options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
   [...]
}

my configuration.

        runtime {
            options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']

            launcher {
                noConsole = true
            }
            jpackage {


                def currentOs = org.gradle.internal.os.OperatingSystem.current()
                def imgType = currentOs.windows ? 'ico' : currentOs.macOsX ? 'icns' : 'png'
                imageOptions += ['--icon', "src/main/resources/hellofx.$imgType"]
                installerOptions += ['--resource-dir', "src/main/resources"]
                installerOptions += ['--vendor', 'Acme Corporation']

                if(currentOs.windows) {
                    installerOptions += ['--win-per-user-install', '--win-dir-chooser', '--win-menu', '--win-shortcut']
                }
                else if (currentOs.linux) {
                    installerOptions += ['--linux-package-name', 'hellofx','--linux-shortcut']
                }
                else if (currentOs.macOsX) {
                    installerOptions += ['--mac-package-name', 'hellofx']
                }
            }
        }

I tried this. but , it not worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants