Open UnixPhonez opened 2 years ago
Flatpak does not yet support packaging gradle projects as it requires fetching pre-built binaries during the build phase.
I don't have any plans to create or add a package to those repositories myself, as it becomes too much of a hassle for me to have to update the package everywhere.
It would be great if someone was willing to help create and update a blobsaver package on either of those repositories/formats (this is how blobsaver is on winget and the AUR; I'm not the one who updates those packages). Even a script or GitHub Action would be helpful. I'd welcome any new way to make it easier for users to install and use blobsaver.
Flatpak does not yet support packaging gradle projects as it requires fetching pre-built binaries during the build phase.
If flatpack doesn't support packaging gradle projects it could be a separate script or GitHub Action that consumes the binaries that are produced by gradle.
it could be a separate script or GitHub Action that consumes the binaries that are produced by gradle.
I found a way to fetch all dependencies into a local maven repository so that gradle can pick them up during build phase. All files are in my flatpak branch. I have been able to successfully compile and build (in sandbox mode) the flatpak bundle. But it won't run, due to following error:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module airsquared.blobsaver not found
If someone could investigate and help me figure out why this is happening, we could have a working flatpaked blobsaver. This is my first time building a java application in a flatpak, so it's hard to figure everything out on my own.
Note: I had to set language version back to 17, as gradle provided by flatpak's openjdk sdk does not yet support java 18.
I have finally managed to build a flatpak through an action. It works, but there are obviously some limitations, for example:
It would be possible for the 1st and 2nd steps to work once the usb-device-portal is implemented in flatpak.
Things that work:
Thanks for figuring out how to build the flatpak (seems like it took a lot, looking at your fork).
As soon as reading the apnonce starts working, I'd be ready to submit it to Flathub. I don't want to submit it without that, as it would likely confuse users why it's not available (especially since it's a key feature).
I would just like to let you guys know that I am working on a Docker container with support for the new CLI arguments. I don't think it will be possible for me to get it to read the apnonce and generator stuff from a device so those will need to be obtained some other way. It's really just so you can have it run in the background and save the blobs if Blobsaver isn't available to your system (ex: NixOS). Ideally I would like it to be entirely CLI based but worst case scenario, I will just repurpose a VNC container and stuff this into it.
I would just like to let you guys know that I am working on a Docker container with support for the new CLI arguments. I don't think it will be possible for me to get it to read the apnonce and generator stuff from a device so those will need to be obtained some other way. It's really just so you can have it run in the background and save the blobs if Blobsaver isn't available to your system (ex: NixOS). Ideally I would like it to be entirely CLI based but worst case scenario, I will just repurpose a VNC container and stuff this into it.
https://github.com/PassiveLemon/blobsaver-docker I have it functional now. It's a little janky but it does what I originally wanted it to do. Currently, it can't connect to usb devices to get the apnonce and generator so some other method is needed to obtain the required details. It only functions as a server to save the blobs once provided the valid XML. I will see what I can do to get that functionality working.
Describe the what you'd like An interest in supporting flatpak and submitting to the flathub store or making an appimage