leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
772 stars 106 forks source link

AppImage packaging failed when copying shared libraries #144

Open tk-nguyen opened 9 months ago

tk-nguyen commented 9 months ago

Hello! We're using this package to create Linux AppImage builds for our app, but it is failing when copying over shared libraries. Probably it's because it's copying twice.

image

image

After running ldd on the built app, there are 2 locations for our shared libraries, which cause flutter_distributor to copy them both:

image

image

Maybe we can add -f to cp command or detect duplicated shared libraries?

lijy91 commented 7 months ago

Hi @KRTirtho , can you help me take a look at this issue?

KRTirtho commented 7 months ago

But we're already making sure paths are unique. I'm unsure how it's getting duplicated

https://github.com/leanflutter/flutter_distributor/blob/694cec2ee3a1ddbb86cac5a39ac33334d8324170/packages/flutter_app_packager/lib/src/makers/appimage/app_package_maker_appimage.dart#L33-L46

KRTirtho commented 7 months ago

Also, in here we made sure to eradicate duplicates

https://github.com/leanflutter/flutter_distributor/blob/694cec2ee3a1ddbb86cac5a39ac33334d8324170/packages/flutter_app_packager/lib/src/makers/appimage/app_package_maker_appimage.dart#L168-L183