make transhell not dependence

This commit is contained in:
CongTianKong 2023-07-31 12:17:44 +08:00
parent 14bf59fb5a
commit 499f04719c
2 changed files with 10 additions and 3 deletions

@ -121,7 +121,8 @@ echo "Section: utils" >> ./deb-contents/DEBIAN/control
echo "Priority: optional" >> ./deb-contents/DEBIAN/control
echo "Architecture: $DEBIAN_DEB_ARCH" >> ./deb-contents/DEBIAN/control
echo "Maintainer: CongTianKong (gitee.com/CongTianKong)" >> ./deb-contents/DEBIAN/control
echo "Depends: bubblewrap, bash, coreutils, shared-mime-info, xdg-utils, transhell" >> ./deb-contents/DEBIAN/control
echo "Depends: bubblewrap, bash, coreutils, shared-mime-info, xdg-utils" >> ./deb-contents/DEBIAN/control
echo "Recommends: transhell" >> ./deb-contents/DEBIAN/control
echo "Description: A script to run programs with newer libc." >> ./deb-contents/DEBIAN/control
echo " package built with make-deb.sh from additional-base-lib project." >> ./deb-contents/DEBIAN/control
echo " libc6 download URL: $LIBC6_DOWNLOAD_URL" >> ./deb-contents/DEBIAN/control
@ -144,6 +145,7 @@ check $?
echo "copy transhell i18n scripts..."
mkdir -p ./deb-contents/usr/share/ablrun/transhell
cp ./scripts/transhell/ablrun_* ./deb-contents/usr/share/ablrun/transhell/
check $?
echo "generate ablrun-normal script..."
echo "#!/bin/bash" > ./deb-contents/usr/bin/ablrun-normal

@ -1,7 +1,12 @@
#!/bin/bash
source /opt/durapps/transhell/transhell.sh
load_transhell
if [ -x "/opt/durapps/transhell/transhell.sh" ]
then
source /opt/durapps/transhell/transhell.sh
load_transhell
else
source /usr/share/ablrun/transhell/ablrun_en_US.transhell
fi
if [ "$*" = "" ]
then