mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-02-04 02:16:03 -05:00
4269c8f405
- Introduce a `compile_vtoycli` function to centralize the compilation logic for different architectures. This function accepts the compiler, library, output binary name, and extra flags as arguments. - Simplify removal of old binaries by consolidating `rm` commands into a single line. - Utilize the `compile_vtoycli` function to compile the `vtoycli` tool for x64, ia32, aarch64, and mips64el architectures. - Improve the check for successful compilation by verifying the existence of all expected binaries before proceeding to strip and move them. - Streamline the stripping and moving of binaries to their respective directories, enhancing the script's readability and maintainability.