mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-10-06 01:42:22 +08:00
更改目录为ace-env
This commit is contained in:
parent
24fe84d5be
commit
0bbaaea422
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
*.deb
|
*.deb
|
||||||
src/opt/apps/amber-ce-bookworm/files/bookworm-env.tar.xz
|
src/opt/apps/amber-ce-bookworm/files/ace-env.tar.xz
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
if [ "${PACKAGE_NAME}" = "amber-ce-bookworm" ];then
|
if [ "${PACKAGE_NAME}" = "amber-ce-bookworm" ];then
|
||||||
if [ -e /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env ];then
|
if [ -e /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env ];then
|
||||||
if [ "$(arch)" != "loongarch64" ];then
|
if [ "$(arch)" != "loongarch64" ];then
|
||||||
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/amber-ce-bookworm/files/bookworm-env
|
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/amber-ce-bookworm/files/ace-env
|
||||||
|
rm -rf /opt/apps/cn.flamescion.bookworm-compatibility-mode
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -10,7 +10,7 @@ fi
|
|||||||
|
|
||||||
# Desktop files (used by desktop environments within both X11 and Wayland) are
|
# Desktop files (used by desktop environments within both X11 and Wayland) are
|
||||||
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for ACE
|
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for ACE
|
||||||
ACE_path="/opt/apps/amber-ce-bookworm/files/bookworm-env/usr/share/"
|
ACE_path="/opt/apps/amber-ce-bookworm/files/ace-env/usr/share/"
|
||||||
if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then
|
if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then
|
||||||
export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}"
|
export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}"
|
||||||
fi
|
fi
|
||||||
|
@ -9,7 +9,7 @@ fi
|
|||||||
|
|
||||||
# Desktop files (used by desktop environments within both X11 and Wayland) are
|
# Desktop files (used by desktop environments within both X11 and Wayland) are
|
||||||
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for ACE
|
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for ACE
|
||||||
ACE_path="/opt/apps/amber-ce-bookworm/files/bookworm-env/usr/share/"
|
ACE_path="/opt/apps/amber-ce-bookworm/files/ace-env/usr/share/"
|
||||||
if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then
|
if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then
|
||||||
export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}"
|
export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}"
|
||||||
fi
|
fi
|
||||||
|
@ -8,7 +8,7 @@ fi
|
|||||||
unset ABSOLUTE_PATH IN_CONTAINER_PATH PKGNAME_GUESS DPKG_LIST_FILE ACE_ENV_PATH
|
unset ABSOLUTE_PATH IN_CONTAINER_PATH PKGNAME_GUESS DPKG_LIST_FILE ACE_ENV_PATH
|
||||||
|
|
||||||
# 定义环境路径变量
|
# 定义环境路径变量
|
||||||
ACE_ENV_PATH="/opt/apps/amber-ce-bookworm/files/bookworm-env"
|
ACE_ENV_PATH="/opt/apps/amber-ce-bookworm/files/ace-env"
|
||||||
|
|
||||||
# 检查参数个数
|
# 检查参数个数
|
||||||
if [ "$#" -ne 1 ]; then
|
if [ "$#" -ne 1 ]; then
|
||||||
|
@ -4,7 +4,7 @@ pkexec $0
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
# 定义应用列表文件路径
|
# 定义应用列表文件路径
|
||||||
ACE_dir="/opt/apps/amber-ce-bookworm/files/bookworm-env"
|
ACE_dir="/opt/apps/amber-ce-bookworm/files/ace-env"
|
||||||
|
|
||||||
# 读取所有.desktop文件,并构造应用列表
|
# 读取所有.desktop文件,并构造应用列表
|
||||||
app_list=()
|
app_list=()
|
||||||
|
@ -13,7 +13,7 @@ PKGNAME=`basename $ppparent_dir`
|
|||||||
else
|
else
|
||||||
PKGNAME=$PACKAGE_NAME
|
PKGNAME=$PACKAGE_NAME
|
||||||
fi
|
fi
|
||||||
chrootEnvPath=/opt/apps/$PKGNAME/files/bookworm-env
|
chrootEnvPath=/opt/apps/$PKGNAME/files/ace-env
|
||||||
if [ ! -e $chrootEnvPath ];then
|
if [ ! -e $chrootEnvPath ];then
|
||||||
echo "Uncompress the env...."
|
echo "Uncompress the env...."
|
||||||
tar -xvf $chrootEnvPath.tar.xz -C /opt/apps/$PKGNAME/files/
|
tar -xvf $chrootEnvPath.tar.xz -C /opt/apps/$PKGNAME/files/
|
||||||
|
@ -6,7 +6,7 @@ pparent_dir=`dirname $parent_dir`
|
|||||||
ppparent_dir=`dirname $pparent_dir`
|
ppparent_dir=`dirname $pparent_dir`
|
||||||
PKGNAME=`basename $ppparent_dir`
|
PKGNAME=`basename $ppparent_dir`
|
||||||
export PACKAGE_NAME=$PKGNAME
|
export PACKAGE_NAME=$PKGNAME
|
||||||
chrootEnvPath=/opt/apps/$PKGNAME/files/bookworm-env
|
chrootEnvPath=/opt/apps/$PKGNAME/files/ace-env
|
||||||
|
|
||||||
if [ ! -e $chrootEnvPath/finish.flag ];then
|
if [ ! -e $chrootEnvPath/finish.flag ];then
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ pparent_dir=`dirname $parent_dir`
|
|||||||
ppparent_dir=`dirname $pparent_dir`
|
ppparent_dir=`dirname $pparent_dir`
|
||||||
PKGNAME=`basename $ppparent_dir`
|
PKGNAME=`basename $ppparent_dir`
|
||||||
export PACKAGE_NAME=$PKGNAME
|
export PACKAGE_NAME=$PKGNAME
|
||||||
chrootEnvPath=/opt/apps/$PKGNAME/files/bookworm-env
|
chrootEnvPath=/opt/apps/$PKGNAME/files/ace-env
|
||||||
|
|
||||||
if [ ! -e $chrootEnvPath/finish.flag ];then
|
if [ ! -e $chrootEnvPath/finish.flag ];then
|
||||||
|
|
||||||
|
@ -14,22 +14,29 @@ fi
|
|||||||
if [ "$1" = "amd64" ] || [ "$1" = "x64" ];then
|
if [ "$1" = "amd64" ] || [ "$1" = "x64" ];then
|
||||||
ARCH="amd64"
|
ARCH="amd64"
|
||||||
ARCH_ANOTHERWAY="x64"
|
ARCH_ANOTHERWAY="x64"
|
||||||
|
cd "`dirname $0`"
|
||||||
|
sudo debootstrap --include=libnotify-bin,apt-utils,bash-completion,bc,curl,dialog,diffutils,findutils,gnupg2,less,libnss-myhostname,libvte-common,lsof,ncurses-base,passwd,pinentry-curses,procps,sudo,time,util-linux,wget,libegl1-mesa,libgl1-mesa-glx,libvulkan1,mesa-vulkan-drivers,locales,libglib2.0-bin --arch=${ARCH} bookworm ./ace-env https://mirrors.ustc.edu.cn/debian/
|
||||||
|
|
||||||
elif [ "$1" = "arm64" ] || [ "$1" = "arm" ];then
|
elif [ "$1" = "arm64" ] || [ "$1" = "arm" ];then
|
||||||
ARCH="arm64"
|
ARCH="arm64"
|
||||||
ARCH_ANOTHERWAY="arm64"
|
ARCH_ANOTHERWAY="arm64"
|
||||||
else
|
|
||||||
echo "Invalid architecture! Exit"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd "`dirname $0`"
|
cd "`dirname $0`"
|
||||||
sudo debootstrap --include=libnotify-bin,apt-utils,bash-completion,bc,curl,dialog,diffutils,findutils,gnupg2,less,libnss-myhostname,libvte-common,lsof,ncurses-base,passwd,pinentry-curses,procps,sudo,time,util-linux,wget,libegl1-mesa,libgl1-mesa-glx,libvulkan1,mesa-vulkan-drivers,locales,libglib2.0-bin --arch=${ARCH} bookworm ./bookworm-env https://mirrors.ustc.edu.cn/debian/
|
sudo debootstrap --include=libnotify-bin,apt-utils,bash-completion,bc,curl,dialog,diffutils,findutils,gnupg2,less,libnss-myhostname,libvte-common,lsof,ncurses-base,passwd,pinentry-curses,procps,sudo,time,util-linux,wget,libegl1-mesa,libgl1-mesa-glx,libvulkan1,mesa-vulkan-drivers,locales,libglib2.0-bin --arch=${ARCH} bookworm ./ace-env https://mirrors.ustc.edu.cn/debian/
|
||||||
|
elif [ "$1" = "loong" ] || [ "$1" = "loong64" ];then
|
||||||
|
ARCH="loong64"
|
||||||
|
ARCH_ANOTHERWAY="loong64"
|
||||||
|
sudo debootstrap --no-check-gpg --include=libnotify-bin,apt-utils,bash-completion,bc,curl,dialog,diffutils,findutils,gnupg2,less,libnss-myhostname,libvte-common,lsof,ncurses-base,passwd,pinentry-curses,procps,sudo,time,util-linux,wget,libegl1,libgl1-mesa-dri,libvulkan1,mesa-vulkan-drivers,locales,libglib2.0-bin --arch=${ARCH} --variant=buildd sid ./ace-env http://lauosc.cn:11232/debian
|
||||||
|
else
|
||||||
|
echo "Need to point out architecture"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
sudo rm -rf bookworm-env/var/cache/apt/archives/*.deb
|
sudo rm -rf ace-env/var/cache/apt/archives/*.deb
|
||||||
|
|
||||||
sudo tar -I 'xz -T0' -cvf bookworm-env.tar.xz bookworm-env/*
|
sudo tar -I 'xz -T0' -cvf ace-env.tar.xz ace-env/*
|
||||||
sudo rm -rf bookworm-env
|
sudo rm -rf ace-env
|
||||||
|
|
||||||
pushd flamescion-container-tools/ace-host-integration
|
pushd flamescion-container-tools/ace-host-integration
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ fi
|
|||||||
|
|
||||||
# Desktop files (used by desktop environments within both X11 and Wayland) are
|
# Desktop files (used by desktop environments within both X11 and Wayland) are
|
||||||
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for ACE
|
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for ACE
|
||||||
ACE_path="/opt/apps/amber-ce-bookworm/files/bookworm-env/usr/share/"
|
ACE_path="/opt/apps/amber-ce-bookworm/files/ace-env/usr/share/"
|
||||||
if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then
|
if [ -n "${XDG_DATA_DIRS##*${ACE_path}}" ] && [ -n "${XDG_DATA_DIRS##*${ACE_path}:*}" ]; then
|
||||||
export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}"
|
export XDG_DATA_DIRS="${ACE_path}:${XDG_DATA_DIRS}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user