Add ZorinOS workaround

This commit is contained in:
2023-08-10 16:37:41 -04:00
parent ab7dba400e
commit 078bf63b62

View File

@@ -170,7 +170,7 @@ init() {
rhel) rhel)
ID="centos" ID="centos"
;; ;;
linuxmint|neon|*ubuntu*) linuxmint|neon|zorin|*ubuntu*)
ID="ubuntu" ID="ubuntu"
;; ;;
*suse*) *suse*)
@@ -874,6 +874,7 @@ installMCDEB() {
sed -i 's/ ([^)]*)//g' "control" sed -i 's/ ([^)]*)//g' "control"
sed -i 's/([^)]*)//g' "control" # TODO MC DEB package error sed -i 's/([^)]*)//g' "control" # TODO MC DEB package error
[[ $ID == "ubuntu" && ${VERSION_ID%.*} -le 16 ]] && [[ $ID == "ubuntu" && ${VERSION_ID%.*} -le 16 ]] &&
! grep -q zorin /etc/os-release && # TODO ugly ZorinOS workaround
sed -i 's/libva2/libva1/g' "control" sed -i 's/libva2/libva1/g' "control"
execute tar -cJf "control.tar.xz" "control" "postinst" execute tar -cJf "control.tar.xz" "control" "postinst"
declare -g MC_DEB="${MC_DEB/.deb/.compat.deb}" declare -g MC_DEB="${MC_DEB/.deb/.compat.deb}"