If your goal is just to produce a single file that is equivalent to a large number of files and a single executable, I would suggest you look at AppImage(https://appimage.org/) you can make almost anything into an AppImage from any language, although it is not always easy to setup(check out the packaging guide https://docs.appimage.org/packaging-guide/index.html).
> The key idea of the AppImage format is one app = one file
From the website