mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-06-22 07:26:36 +08:00
初步自动构建工程实现
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
export DEBIAN_FRONTEND=noninteractive # 防止卡 tzdate
|
||||
#mkdir -p /etc/apt/sources.list.d/
|
||||
#cp /etc/apt/sources.list /etc/apt/sources.list.d/sources.list
|
||||
#sed -i "s/deb /deb-src /g" /etc/apt/sources.list.d/sources.list
|
||||
#cat /etc/apt/sources.list
|
||||
#cat /etc/apt/sources.list.d/sources.list
|
||||
# 判断系统版本
|
||||
#cat /etc/issue | grep 12
|
||||
#if [[ $? == 0 ]]; then
|
||||
# echo "deb-src http://deb.debian.org/debian bookworm main" > /etc/apt/sources.list.d/debian-sources.list
|
||||
#fi
|
||||
#cat /etc/issue | grep sid
|
||||
#if [[ $? == 0 ]]; then
|
||||
# echo "deb-src http://deb.debian.org/debian sid main" > /etc/apt/sources.list.d/debian-sources.list
|
||||
#fi
|
||||
# 写入 GXDE 源
|
||||
echo "deb [trusted=true] https://repo-gxde.gfdgdxi.top/gxde-os/tianlu ./" >> /etc/apt/sources.list.d/gxde-os.list
|
||||
echo "deb [trusted=true] https://repo-gxde.gfdgdxi.top/gxde-os/bixie ./" >> /etc/apt/sources.list.d/gxde-os.list
|
||||
if [[ $1 == "loong64" ]]; then
|
||||
echo "deb [trusted=true] http://mirror.sjtu.edu.cn/debian-ports unreleased main" > /etc/apt/sources.list.d/debian-unreleased.list
|
||||
fi
|
||||
apt update
|
||||
apt install dpkg-dev sudo neofetch -y
|
||||
neofetch
|
||||
#if [[ `arch` != "x86_64" ]]; then
|
||||
# apt source qemu
|
||||
# cd qemu-*/
|
||||
# sed -i "s/gcc-s390x-linux-gnu,//g" debian/control
|
||||
# sed -i "s/gcc-alpha-linux-gnu,//g" debian/control
|
||||
# sed -i "s/gcc-sparc64-linux-gnu,//g" debian/control
|
||||
# sed -i "s/gcc-powerpc64-linux-gnu,//g" debian/control
|
||||
# sed -i "s/gcc-hppa-linux-gnu,//g" debian/control
|
||||
# sed -i "s/gcc-riscv64-linux-gnu,//g" debian/control
|
||||
# apt build-dep . -y
|
||||
# cd ..
|
||||
#fi
|
||||
#apt build-dep qemu -y
|
||||
# 如果是 Debian10 就需要安装 Python3 的依赖
|
||||
#apt build-dep python3.7 -y
|
||||
apt build-dep . -y
|
||||
exit 0
|
||||
Reference in New Issue
Block a user