代码拉取完成,页面将自动刷新
同步操作将从 deepin-community/youqu 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
# SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
# SPDX-License-Identifier: GPL-2.0-only
export PIPENV_VERBOSITY=-1
ROOT_DIR=$(dirname $(realpath "${BASH_SOURCE[0]}"))
tag=$(echo "$(cat ${ROOT_DIR}/CURRENT | grep "tag = ")" | cut -d "=" -f2 | python3 -c "s=input();print(s.strip())")
config_pwd=$(cat ${ROOT_DIR}/setting/globalconfig.ini | grep -v "CLIENT_PASSWORD" | grep "PASSWORD = ")
PASSWORD=$(echo "${config_pwd}" | cut -d "=" -f2 | python3 -c "s=input();print(s.strip())")
DEV=false
while getopts ":p:D" opt
do
case $opt in
p)
PASSWORD=$OPTARG
;;
D)
DEV=true
;;
?)
echo -e " 参数说明:\
\n\t-p password 指定密码, 如: bash env.sh -p xxx
\n\t-D 开发环境部署, 如: bash env.sh -D
"
exit 1
;;
esac
done
debian_platform=false
yq=apt
if command -v apt &> /dev/null; then
debian_platform=true
yq=apt
else
yq=yum
fi
DISPLAY_SERVER=$(cat ${HOME}/.xsession-errors | grep XDG_SESSION_TYPE | head -n 1 | cut -d "=" -f2)
if [ "${DISPLAY_SERVER}" = "" ]; then
ps -ef | grep -v grep | grep kwin_x11
[ $? = 0 ] && DISPLAY_SERVER=x11 || DISPLAY_SERVER=wayland
fi
PYTHON_VERSION=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
whitelist="/usr/share/deepin-elf-verify/whitelist"
pypi_mirror="https://pypi.tuna.tsinghua.edu.cn/simple"
echo "${PASSWORD}" | sudo -S su > /dev/null 2>&1
if [ ! -f "$HOME/.Xauthority" ]; then
touch $HOME/.Xauthority
fi
if [ "${DEV}" = "true" ]; then
source ./src/utils/env_dev.sh
else
source ./src/utils/env_vir.sh
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。