From 675cd70495ca0b7beb7ca28be7a1b01b9619f501 Mon Sep 17 00:00:00 2001 From: Adam Pickering Date: Tue, 19 Dec 2023 16:26:55 -0700 Subject: [PATCH] Bundle libcairo inside AppImage Fedora 39 uses a version of libcairo that is newer than other distros. This newer version appears to have removed a symbol that is required for Rancher Desktop. The fix is to bundle the older version of libcairo inside the AppImage (which is the only package format that has this problem occurs as of the time of writing). Signed-off-by: Adam Pickering --- packaging/linux/appimage.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/linux/appimage.yml b/packaging/linux/appimage.yml index 92293ab806f..d981fe9553a 100644 --- a/packaging/linux/appimage.yml +++ b/packaging/linux/appimage.yml @@ -4,9 +4,10 @@ build: packages: - unzip - ImageMagick + - libcairo2 script: - - rm -rf $BUILD_APPDIR/* && mkdir -p $BUILD_APPDIR/opt/rancher-desktop $BUILD_APPDIR/usr/share/metainfo $BUILD_APPDIR/usr/bin + - rm -rf $BUILD_APPDIR/* && mkdir -p $BUILD_APPDIR/opt/rancher-desktop $BUILD_APPDIR/usr/share/metainfo $BUILD_APPDIR/usr/bin $BUILD_APPDIR/usr/lib64 - unzip $BUILD_SOURCE_DIR/rancher-desktop.zip -d $BUILD_APPDIR/opt/rancher-desktop - mv $BUILD_APPDIR/opt/rancher-desktop/resources/resources/linux/rancher-desktop.desktop $BUILD_APPDIR - convert -resize 512x512 $BUILD_APPDIR/opt/rancher-desktop/resources/resources/icons/logo-square-512.png $BUILD_APPDIR/rancher-desktop.png @@ -14,5 +15,6 @@ script: - mv $BUILD_APPDIR/opt/rancher-desktop/resources/resources/linux/lima/bin/qemu-* $BUILD_APPDIR/usr/bin - mv $BUILD_APPDIR/opt/rancher-desktop/resources/resources/linux/lima/share/qemu $BUILD_APPDIR/usr/share - mv $BUILD_APPDIR/opt/rancher-desktop/resources/resources/linux/lima/lib $BUILD_APPDIR/usr + - cp /usr/lib64/libcairo* $BUILD_APPDIR/usr/lib64/ - ln -s ../../opt/rancher-desktop/rancher-desktop $BUILD_APPDIR/usr/bin/rancher-desktop - ln -s ../share/qemu $BUILD_APPDIR/usr/bin/pc_bios