-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Portable executable not supported for non-exe targets #3386
Comments
Java archives aren't yet supported. They require a Java runtime to be present on the system. WinGet doesn't have a native mechanism to support them. The best current solution I see for this issue is for the validation service to report a more specific error based on the extension not being .exe for a portable package. |
Non-portable Java applications either bundle a |
@denelon - Is this more of a feature request than a bug? |
This issue leads to other unexpected behavior. Although
From my perspective there is not that much that holds us away from supporting it. I would purpose the following changes:
If these both issues are solved, I assume many portable installations which are using these approaches will work. BTW: I faced this issue while I'm working on winget-pkgs#123118 to solve winget-pkgs#65391. |
Brief description of your issue
When trying to create a package for PlantUML, I found that the
.jar
file was renamed bywinget-cli
from plantuml.jar to plantuml.exe. This prevents packages of non-executable.Steps to reproduce
Grab the manifest from here:
winget install --manifest F:\Files\Git\winget-pkgs-1\manifests\p\PlantUML\PlantUML\v1.2023.9\
C:\Users\David\AppData\Local\Microsoft\WinGet\Packages\PlantUML.PlantUML__DefaultSource
.Expected behavior
The file saved as plantuml.jar
Actual behavior
The file is renamed to plantuml.jar.exe
Environment
The text was updated successfully, but these errors were encountered: