Skip to content

Commit

Permalink
Works with Mir 3.7 too
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Jan 26, 2023
1 parent 7cc2839 commit 2518dce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions snap/hooks/configure
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ EOT
mv "${display_file}" "${display_file}.save" || true
mv "${display_temp}" "${display_file}"
chmod a+r "${display_file}"
! [ -e "${SNAP}/miral-lt-3.8" ] || ((config_changes+=1))
else
rm "${display_temp}"
fi
Expand Down
9 changes: 9 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,12 @@ parts:
find . -type f,l -exec rm -f $SNAPCRAFT_PRIME/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/{} \;
rm -fr "$SNAPCRAFT_PRIME/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/dri"
rm -fr "$SNAPCRAFT_PRIME/usr/share/"{bug,doc,doc-base,drirc.d,glvnd,libdrm,lintian,man}
# Back compatibility fix until MirAL 3.8 is released
miral_version=`LANG=C apt-cache policy libmiral-dev | sed -rne 's/^\s+Candidate:\s+([0-9]*\.[0-9])\..+$/\1/p'`
if [ ${miral_version%.*} -eq 3 ] && [ ${miral_version#*.} -lt 8 ]
then
touch $SNAPCRAFT_PRIME/miral-lt-3.8
else
rm -f $SNAPCRAFT_PRIME/miral-lt-3.8
fi

0 comments on commit 2518dce

Please sign in to comment.