#!/bin/bash
Get_Dist_Name()
{
    if grep -Eqii "Deepin" /etc/issue || grep -Eq "Deepin" /etc/*-release; then
        DISTRO='Deepin'
    elif grep -Eqi "UnionTech" /etc/issue || grep -Eq "UnionTech" /etc/*-release; then
        DISTRO='UniontechOS'
    elif grep -Eqi "UOS" /etc/issue || grep -Eq "UOS" /etc/*-release; then
        DISTRO='UniontechOS'
    else
	 DISTRO='OtherOS'
	fi
}


Get_Dist_Name

if [ "$DISTRO" != "Deepin" ] && [ "$DISTRO" != "UniontechOS" ];then
echo "WARNING:Using vanilla box86 instead of deepin-box86! If you are using Uniontech OS or deepin, please contact shenmo@spark-app.store"
export BOX86_EMU_CMD=/opt/spark-box86/box86
/usr/bin/deepin-wine6-stable "$@"
else
/usr/bin/deepin-wine6-stable "$@"
fi

