add appstream metadata to flatpak and appimage; include libdbus-glib-1.so.2 in appimage as well, just in case
This commit is contained in:
parent
c75783737f
commit
01f4e24e40
|
@ -46,6 +46,12 @@ apt -qq update && apt -qqy install wget;
|
|||
wget $_APPIMAGETOOL_DOWNLOAD_URL -O $_APPIMAGETOOL_FILE;
|
||||
chmod +x $_APPIMAGETOOL_FILE;
|
||||
|
||||
# add appstream metadata
|
||||
install -Dvm644 "$_BINARY_TARBALL_EXTRACTED_FOLDER/io.gitlab.LibreWolf.appdata.xml" "$_BINARY_TARBALL_EXTRACTED_FOLDER/share/metainfo/io.gitlab.LibreWolf.appdata.xml"
|
||||
|
||||
# add libdbus-glib-1.so.2, just in case
|
||||
install -Dvm644 "/usr/lib/{$CARCH}-linux-gnu/libdbus-glib-1.so.2" "$_BINARY_TARBALL_EXTRACTED_FOLDER/usr/lib/libdbus-glib-1.so."2
|
||||
|
||||
# Generate AppImage
|
||||
printf "\nGenerating AppImage\n";
|
||||
ARCH=${CARCH} $_APPIMAGETOOL_FILE --appimage-extract-and-run\
|
||||
|
|
|
@ -52,6 +52,10 @@ printf "\nBuilding flatpak repository\n";
|
|||
cp "$_FLATPAK_JSON_FILE" ./;
|
||||
flatpak-builder --disable-rofiles-fuse --repo="$FLATPAK_REPO" "$_FLATPAK_BUILD_FOLDER" io.gitlab.LibreWolf.json;
|
||||
|
||||
# add appstream metadata
|
||||
# TODO: firefox uses files/share/appdata/ in their flatpak, but https://docs.flatpak.org/en/latest/conventions.html says otherwise. which is "more" correct?
|
||||
install -Dvm644 "$_EXTRACTED_BINARY_TARBALL_FOLDER/io.gitlab.LibreWolf.appdata.xml" "$_FLATPAK_BUILD_FOLDER/files/share/metainfo/io.gitlab.LibreWolf.appdata.xml"
|
||||
|
||||
# Build bundle
|
||||
printf "\nBuilding flatpak bundle\n";
|
||||
flatpak build-bundle $FLATPAK_REPO $FLATPAK_BUNDLE io.gitlab.LibreWolf master;
|
||||
|
|
Loading…
Reference in a new issue