#!/bin/bash
apt-get -y install wget
wget -c -O atzlinux-v12-archive-keyring_lastest_all.deb https://www.atzlinux.com/atzlinux/pool/main/a/atzlinux-archive-keyring/atzlinux-v12-archive-keyring_lastest_all.deb
apt -y install ./atzlinux-v12-archive-keyring_lastest_all.deb
apt-get update
apt-get -y install atzlinux-store-v12
apt-get -y install xdg-utils
apt-get -y install xfce4-settings
apt-get -y install libcanberra-gtk-module
apt-get -y purge electronic-wechat-icons-atzlinux
apt-get -y purge com.tencent.wechat
apt-get -y install wechat
apt-get -y install linuxqq
apt-get -y install \
fcitx-config-common \
fcitx-config-gtk \
fcitx-frontend-all \
fcitx-frontend-qt5 \
fcitx-googlepinyin \
fcitx-m17n \
fcitx-module-x11 \
fcitx-sunpinyin \
fcitx-table-wubi \
fcitx-table-wbpy \
fcitx-ui-classic
apt-get -y install libqt5quickwidgets5
apt-get -y install libgsettings-qt1
apt-get -y install libqt5qml5
apt-get -y install sogoupinyin
rm -f /etc/apt/sources.list.d/sogoupinyin.list

# set qt5 in Debian or atzlinux OS for sogoupinyin
# see /var/lib/dpkg/info/sogoupinyin.postinst
if [ -d /opt/sogoupinyin/files/lib/qt5 ] ; then
  mv /opt/sogoupinyin/files/lib/qt5 /opt/sogoupinyin/files/lib/qt5.bak
fi
if [ -f /opt/sogoupinyin/files/bin/qt.conf ] ; then
  mv /opt/sogoupinyin/files/bin/qt.conf /opt/sogoupinyin/files/bin/qt.conf.bak
fi

apt-get -y install fonts-zh-cn-misc-atzlinux
apt-get -y install desktop-file-utils
apt-get -y install baidunetdisk
apt-get -y install app.web.youdao.dict
apt-get -y install ttf-mscorefonts-atzlinux
apt-get -y install wps-office wps-office-fonts
apt-get -y install fonts-lxgw-wenkai
echo "安装成功，请退出当前登录，重新登录，让安装生效。"
