代码拉取完成,页面将自动刷新
VERSION := 15.14.3
RELEASE := Bixie
ARCH_BUILD :=$(shell uname -m)
all: build
build:
ifeq (${ARCH_BUILD}, mipsel)
cp -v files/appstore_loongson.json files/appstore.json
else ifeq (${ARCH_BUILD}, mips64)
cp -v files/appstore_loongson.json files/appstore.json
else ifeq (${ARCH_BUILD}, mips)
cp -v files/appstore_loongson.json files/appstore.json
endif
ifeq (${ARCH_BUILD}, x86_64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-amd > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, i686)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-amd > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, mipsel)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-loongson.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-loongson > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, mips64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-loongson.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-loongson > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, loongarch64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-loongson.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-loongson > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-trixie > files/os-release
else ifeq (${ARCH_BUILD}, sw_64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-sw.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-sw > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, aarch64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-arm.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-arm > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-bookworm > files/os-release
else ifeq (${ARCH_BUILD}, riscv64)
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-riscv.in > files/desktop-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/desktop-version-riscv-server.in > files/desktop-version-server
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-version-riscv > files/os-version
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/os-release-trixie > files/os-release
endif
sed -e "s|@@VERSION@@|$(VERSION)|g" -e "s|@@RELEASE@@|$(RELEASE)|g" files/lsb-release.in > files/lsb-release
install:
mkdir -p ${DESTDIR}/etc
mkdir -p ${DESTDIR}/usr/share/i18n
mkdir -p ${DESTDIR}/usr/share/distro-info
mkdir -p ${DESTDIR}/usr/share/python-apt/templates
#mkdir -p ${DESTDIR}/usr/share/backgrounds/deepin
mkdir -p ${DESTDIR}/usr/share/deepin
install -Dm644 files/i18n_dependent.json ${DESTDIR}/usr/share/i18n/i18n_dependent.json
install -Dm644 files/language_info.json ${DESTDIR}/usr/share/i18n/language_info.json
install -Dm644 files/desktop-version ${DESTDIR}/usr/lib/deepin/desktop-version
install -Dm644 files/os-release ${DESTDIR}/usr/lib/deepin/os-release
#install -Dm644 files/lsb-release ${DESTDIR}/etc/lsb-release
install -Dm644 files/appstore.json ${DESTDIR}/etc/appstore.json
install -Dm644 files/deepin-logo.png ${DESTDIR}/usr/share/plymouth/deepin-logo.png
#install -Dm644 files/desktop.jpg ${DESTDIR}/usr/share/backgrounds/deepin/desktop.jpg
#install -Dm644 files/eff98ab2b2d91574a79fabd2b79eb7a9.jpg ${DESTDIR}/var/cache/image-blur/eff98ab2b2d91574a79fabd2b79eb7a9.jpg
[ -e files/systemd.conf ] && install -Dm644 files/systemd.conf ${DESTDIR}/etc/systemd/system.conf.d/deepin-base.conf
[ -e files/logind.conf ] && install -Dm644 files/logind.conf ${DESTDIR}/etc/systemd/logind.conf.d/deepin-base.conf
install -Dm644 files/Deepin.info ${DESTDIR}/usr/share/python-apt/templates/Deepin.info
install -Dm644 files/Deepin.mirrors ${DESTDIR}/usr/share/python-apt/templates/Deepin.mirrors
# config
mkdir -pv $(DESTDIR)/etc/profile.d/
mkdir -pv $(DESTDIR)/etc/apt/apt.conf.d/
mkdir -pv $(DESTDIR)/etc/apt/preferences.d/
mkdir -pv $(DESTDIR)/etc/apt/trusted.gpg.d/
mkdir -pv $(DESTDIR)/etc/apt/sources.list.d/
mkdir -pv $(DESTDIR)/etc/xdg/autostart
mkdir -pv $(DESTDIR)/usr/bin
mkdir -pv $(DESTDIR)/usr/lib/systemd/system/
mkdir -pv $(DESTDIR)/usr/share/polkit-1/rules.d/
mkdir -pv $(DESTDIR)/etc/default/grub.d/
mkdir -p ${DESTDIR}/tmp
#cp -rv debian-backports.list $(DESTDIR)/tmp/debian-backports.list
cp -rv dde-file-manager-gvfs.rules $(DESTDIR)/usr/share/polkit-1/rules.d/dde-file-manager-gvfs.rules
cp -rv gxde.sh $(DESTDIR)/etc/profile.d/gxde.sh
#cp -rv gxde.list $(DESTDIR)/etc/apt/sources.list.d/gxde.list
#cp -rv gxde.gpg $(DESTDIR)/etc/apt/trusted.gpg.d/gxde.gpg
cp -rv 90bookworm-kernel-backports $(DESTDIR)/etc/apt/preferences.d/
cp -rv 90gxde-valid.conf $(DESTDIR)/etc/apt/apt.conf.d/
cp gxde-config-after-desktop $(DESTDIR)/usr/bin/gxde-config-after-desktop
cp gxde-config-after-desktop.desktop $(DESTDIR)/etc/xdg/autostart/gxde-config-after-desktop.desktop
cp GXDE-grub.cfg $(DESTDIR)/etc/default/grub.d/GXDE-grub.cfg
chmod +x $(DESTDIR)/etc/profile.d/gxde.sh
chmod +x $(DESTDIR)/usr/bin/gxde-config-after-desktop
clean:
rm -f files/desktop-version
rm -f files/lsb-release
rm -f files/os-version
rm -f files/os-release
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。