B
BlueBuild2d ago
Pan

Preinstall appimage

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?
16 Replies
Luke Skywunker
You would probably want to install it somewhere in like /usr/libexec/ and then create a .desktop file for it in /usr/share/applications/
jonah
jonah2d ago
you might be able to use gear lever to install and manage appimage updates https://github.com/mijorus/gearlever?tab=readme-ov-file#cli
GitHub
GitHub - mijorus/gearlever: Manage AppImages with ease 📦
Manage AppImages with ease 📦. Contribute to mijorus/gearlever development by creating an account on GitHub.
Pan
PanOP2d ago
how would that work? would that allow me to pre install the app images?
jonah
jonah2d ago
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
Pan
PanOP2d ago
that was my first guess, but the appimage seems to be to big at least for github web
jonah
jonah2d ago
oh rip. maybe you can fetch the appimage inside of a script while building?
Pan
PanOP2d ago
a module with curl should work?
jonah
jonah2d ago
not sure, youd probably have to test it
Pan
PanOP2d ago
i tried with: - type: script source: local snippets: - "curl https://download.linphone.org/releases/linux/app/Linphone-5.2.6.AppImage > /usr/libexec/linphone.AppImage"
No description
Pan
PanOP2d ago
but that didn't work u.u
jonah
jonah2d ago
maybe try putting it in a bash file
Pan
PanOP2d ago
i added it on an sh file, but uhh, same result
fiftydinar
fiftydinar2d ago
yaml indentation looks incorrect here there is no whitespace between type: & source: & curl snippet isn't 2 whitespaces after snippets:
fiftydinar
fiftydinar2d ago
YAMLlint - The YAML Validator
Validate, Verify and Reformat your YAML documents, optimized for Ruby on Rails
fiftydinar
fiftydinar2d ago
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"
Pan
PanOP2d ago
thank you, that indeed work

Did you find this page helpful?