Skip to content

Commit

Permalink
Bundle libcairo inside AppImage
Browse files Browse the repository at this point in the history
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 <adam.pickering@suse.com>
  • Loading branch information
adamkpickering committed Dec 20, 2023
1 parent f68985d commit 675cd70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packaging/linux/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ 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
- mv $BUILD_APPDIR/opt/rancher-desktop/resources/resources/linux/rancher-desktop.appdata.xml $BUILD_APPDIR/usr/share/metainfo
- 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

0 comments on commit 675cd70

Please sign in to comment.