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

option to only package matching start script #103

Open
Vampire opened this issue Oct 28, 2021 · 0 comments
Open

option to only package matching start script #103

Vampire opened this issue Oct 28, 2021 · 0 comments

Comments

@Vampire
Copy link

Vampire commented Oct 28, 2021

If you build a windows and a linux package, you currently have the quirk, that both packages contain both start scripts.
This is somewhat strange for the end user, because usually he can only use one with the packaged runtime.
It would be nice if the plugin had some built-in way so that only the matching script is packaged.
Currently I do it with

tasks.runtime {
    doLast {
        delete {
            delete(
                runtime.imageDir.get()
                    .dir("${project.name}-windows")
                    .file(tasks.startScripts.get().unixScript.name),
                runtime.imageDir.get()
                    .dir("${project.name}-linux")
                    .file(tasks.startScripts.get().windowsScript.name)
            )
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant