Skip to content

Commit

Permalink
Merge pull request #6242 from adamkpickering/6122-include-libcairo-so
Browse files Browse the repository at this point in the history
Bundle `libcairo` inside AppImage
  • Loading branch information
mook-as committed Dec 21, 2023
2 parents 4ba95ae + 675cd70 commit 1c61d12
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 1c61d12

Please sign in to comment.