hongquan / CoBang

A QR code scanner desktop app for Linux
GNU General Public License v3.0
243 stars 28 forks source link

Standalone Executable? #19

Open vicfic18 opened 3 years ago

vicfic18 commented 3 years ago

Just for the sake of testing, making a a standalone executable(AppImage or Pyinstaller) might beneficial. Adding a PPA just for trying is a bit cumbersome. And not everybody has Flatpak setup.

hongquan commented 3 years ago

@VicFic2006 Flatpak is not my idea. It is just because in early day, many Fedora guys were willing to test, so I tried to package it as Flatpak. I personally don't use Flatpak, because of some limitations in integration with the system (as mentioned in README).

Deploying in PPA is easier for development, because I don't have to build the dependencies. They are prebuilt and hosted in the repo. I just leave them for package manager (APT) to install. But to package in a box, like Flatpak, I have to write scripts to build all dependencies (quite a lot of effort). I'm scared that if I package CoBang to one standalone executable like AppImage/PyInstaller, I have to suffer that experience again.

So, the final answer is, sorry, no.

docop commented 1 year ago

Having it fully portable can be quite usefull. Instead of having to download gig of useless and unknow file and then finally used the soft. Appimage is quite portable and we could just put coBang on the usb stick and be fully running. Thanks to check on that again..

hongquan commented 1 year ago

@docop Actually, this "download gig of useless and unknow file" is what your approach does. With traditional distribution (APT), the app reuses many libraries from your system. But with AppImage, you have to duplicate all those system libraries in the AppImage. If the APT package is only hundreds of kB, the AppImage will be tens of MB. That extra bits is exactly what you described as "download gig of useless and unknow file".

docop commented 1 year ago

Indeed, but as a portable version, just like those in windows system, only 1 file click and it run. Your app can be usefull as a tool on usb stick , as being as is. As for me, i don't have any flatpack and neither snap.