UnownHash / Dragonite-Public

9 stars 9 forks source link

Allow download of specific app versions #16

Closed XerockXMG closed 10 months ago

XerockXMG commented 10 months ago

This PR allows you to pass the -v flag by itself to list the possible versions and also provide it a value to download a specific version

./run.sh -v # Lists out all tags and exits
./run.sh -v 1.1.5 # Attempts to download dragonite-v1.1.5 and admin-v1.1.5

If Dragonite and Admin versions are expected to go out of sync often, I will work on moving this to allow for different versions to be passed for each application.

Fabio1988 commented 10 months ago

We could split that up so if there is a defined tag, the user should define the full tag dragonite-v1.1.5 and then only this will be downloaded ? :) this would solve the async versions :)

So if the user is defining the tag, only download that specific tool :) If not download latest of both :)

XerockXMG commented 10 months ago

Latest commit changes format to have user use the full tag.

./run.sh -v # Lists all available tags
./run.sh -v dragonite-v1.1.11 # Downloads ONLY Dragonite v1.1.11
./run.sh -v admin-v1.1.8 # Downloads ONLY Admin 1.1.8

No changes made to logic for if you don't provide a -v flag. It will download the latest version of both projects.

Fabio1988 commented 10 months ago

Thanks a lot, works as expected :)