https://blue-build.org/ logo
Preinstall appimage
# questions
p
hihi, so, i want to make an image to be used on callcenters, almost everything is packaged on fedora, but linphone-desktop is not, they only have debs and appimages, how could be the best way to preinstall it with bluebuild?
a
message has been deleted
g
You would probably want to install it somewhere in like
/usr/libexec/
and then create a
.desktop
file for it in
/usr/share/applications/
j
you might be able to use gear lever to install and manage appimage updates https://github.com/mijorus/gearlever?tab=readme-ov-file#cli
p
how would that work? would that allow me to pre install the app images?
j
i was thinking you could have some sort of systemd service that runs
flatpak run it.mijorus.gearlever --integrate <appimage>
on startup. Then gearlever would add the desktop file for you. But i think gmpinders idea is probably better if you're ok with hardcoding everything
p
that was my first guess, but the appimage seems to be to big
at least for github web
j
oh rip. maybe you can fetch the appimage inside of a script while building?
p
a module with curl should work?
j
not sure, youd probably have to test it
but that didn't work u.u
j
maybe try putting it in a bash file
p
i added it on an sh file, but uhh, same result
f
yaml indentation looks incorrect here
there is no whitespace between
type:
&
source:
& curl snippet isn't 2 whitespaces after
snippets:
Also, it's better to put AppImage in
/usr/libexec/linphone/linphone.AppImage
, so it has a dedicated folder in libexec. Also
chmod +x
it, so it's executable. Full snippet with suggested improvements:
"curl https://download.linphone.org/releases/linux/app/Linphone-5.2.6.AppImage > /usr/libexec/linphone/linphone.AppImage && chmod +x /usr/libexec/linphone/linphone.AppImage"
p
thank you, that indeed work