thilojaeggi / WinGetty

An open source REST Backend for creating a private WinGet Repo without having to rely on cloud dependencies.
https://wingetty.dev
GNU Affero General Public License v3.0
168 stars 15 forks source link

Can't define `PortableCommandAlias` when creating a nested installer #51

Open taki-eddine-47 opened 2 months ago

taki-eddine-47 commented 2 months ago

Describe the bug: When creating a zip package, winget gives the two options for NestedInstallerFiles, RelativeFilePath and PortableCommandAlias, wingetty doesn't provide the second option.

Example: https://github.com/microsoft/winget-pkgs/blob/master/manifests/s/Stenzek/DuckStation/0.1.6280/Stenzek.DuckStation.installer.yaml

To Reproduce: Steps to reproduce the behavior:

Expected behavior: Ability to define PortableCommandAlias.

Screenshots image

General Information:

Additional context: Just quick search in code. In the form, you can find only use of RelativeFilePath: https://github.com/thilojaeggi/WinGetty/blob/115adecb9b6b7afd6c56bb29e82126ef0adb2a78/app/forms.py#L108C40-L108C61 But the model support the second option: https://github.com/thilojaeggi/WinGetty/blob/115adecb9b6b7afd6c56bb29e82126ef0adb2a78/app/models.py#L130