I'm making a simple GUI with Electron for a CLI executable that is distributed under GPLv2. I assume the license isn't an issue since this is a personal project and I'm happy to license mine GPLv2 as well, but I was wondering the correct way to bundle the executable file in my Git source control as it seems like a really bad solution to include it as if it was a source file.
I was wondering the correct way to bundle the executable file in my Git source control
The correct way is not to do that at all. Instead you should write your GUI in such a way that it makes no assumptions where the CLI tool is located and write in your documentation (e.g. your README.md) which CLI tool you are wrapping and give a pointer to the project of the CLI tool.