On 16/02/2022 21:57, Diego Herrera wrote:
I was checking if the scrcpy software [1] could get packaged, but to continue I need to know how to package an APK package file.
All Fedora packages must be build from sources. You can't package and redistribute precompiled APK/JAR files.
It must be removed.
Another idea that I thought of was to patch the program or add a script that downloads the APK on the first run and save it on userspace. Technically you are not packaging the binary, but in my opinion it's just a roundabout way to get the same result.
You can upload this APK to one of the Android marketplaces like F-Droid and patch your package to show the download link.