Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions BuildLinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,19 @@ then
DISTRIBUTION="debian2"
fi
fi
# Treat Linux Mint like its Ubuntu base (Mint 22.x is based on Ubuntu 24.04)
if [ "${DISTRIBUTION}" == "linuxmint" ]
then
DISTRIBUTION="debian"
VERSION_ID=$(awk -F= '/^VERSION_ID=/ {print $2}' /etc/os-release)
NUMERIC_VERSION=$(echo ${VERSION_ID} | tr -d '"')
MINT_MAJOR=${NUMERIC_VERSION%%.*}
# Mint 22.x => Ubuntu 24.04 => debian2
if [ "${MINT_MAJOR}" -ge 22 ]
then
DISTRIBUTION="debian2"
fi
fi
# 兼容麒麟系统(Kylin/openKylin),使用专用脚本
if [ "${DISTRIBUTION}" == "kylin" ] || [ "${DISTRIBUTION}" == "openkylin" ]
then
Expand Down