iBotPeaches / Apktool

A tool for reverse engineering Android apk files
https://apktool.org/
Apache License 2.0
20.36k stars 3.6k forks source link

Add ability to automatically pick up the latest apktool.jar version #3683

Closed codebymikey closed 2 months ago

codebymikey commented 2 months ago

Similar to the work done on https://github.com/iBotPeaches/Apktool/pull/2120, adding the ability to automatically pick up the latest apktool version for the user.

If the script finds an apktool.jar it's selected automatically, otherwise it looks for jar versions available in its directory with the name format apktool_<version>.jar and picks the latest accordingly.

iBotPeaches commented 2 months ago

Is this a pattern someone started somewhere in some tool/guide that caused a lot of people to collect the versions in this manner?

codebymikey commented 2 months ago

No, I think it's mainly because that's the default naming convention of the jar files downloaded from the GitHub releases, so it's a lot more convenient saving them directly within the same directory as the wrapper and having it work that way without needing to rename it.