Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DeepinOS support (Part 1) #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
40 changes: 40 additions & 0 deletions chrx-install
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,46 @@ determine_osv_fedora()

}

get_os_version_deepin()
{
release_log_url="https://www.deepin.org/en/category/release-notes/"
version_list=$(curl -s ${release_log_url} | grep -Eo ">[0-9][0-9]/" | grep -o "[0-9][0-9]")
CHRX_OS_VERSION=$(echo "${version_list}" | sort | tail -1)
# default to 15.11
if [[ $CHRX_OS_VERSION != [0-9][0-9] ]]; then
CHRX_OS_VERSION="15.11"
fi
}

determine_osv_deepin()
{
msg_os_version="${ANSI_YEL}(CAUTION: chrx support is beta!)${ANSI_RST}"
case "${CHRX_OS_RELEASE}" in
latest)
get_os_version_deepin
;;
15.11,15.10,15.9,15.8,15.7,15.6,15,5,15.4,15.3,15.2,15.1)
CHRX_OS_VERSION=${CHRX_OS_RELEASE}
;;
rawhide)
CHRX_OS_VERSION=${CHRX_OS_RELEASE}
msg_os_version="${ANSI_YEL}(CAUTION: development version; may not work!)${ANSI_RST}"
;;
*)
if [[ ${CHRX_OS_RELEASE} == [0-9][0-9] ]]; then
CHRX_OS_VERSION=${CHRX_OS_RELEASE}
msg_os_version="${ANSI_YEL}(CAUTION: untested!)${ANSI_RST}"
else
msg_os_version="${ANSI_RED}(invalid!)${ANSI_RST}"
FAIL=1
fi
;;
esac

CHRX_OS_CORE_IMAGE_URL='http://cdimage.deepin.com/releases/20Beta/deepin-20Beta-desktop-amd64.iso'

}

set_customizations_ubuntu()
{
SKEL_FILES="
Expand Down