mirror of
https://gitee.com/spark-store-project/additional-base-lib
synced 2025-12-18 13:01:42 +08:00
add-transhell
This commit is contained in:
@@ -1,23 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
source /opt/durapps/transhell/transhell.sh
|
||||
load_transhell
|
||||
|
||||
if [ "$*" = "" ]
|
||||
then
|
||||
echo "usage: $0 [command [arguments ...]]"
|
||||
echo " The script is part of additional-base-lib. The package provides a"
|
||||
echo " simple way to solve the compatible problem between application and"
|
||||
echo " glibc, powered by bubblewrap."
|
||||
echo -e "${TRANSHELL_CONTENT_USAGE}"
|
||||
echo -e "${TRANSHELL_CONTENT_ADDITIONAL_BASE_LIB_INFO}"
|
||||
echo
|
||||
echo " All the library files, which packed with additional-base-lib,"
|
||||
echo " are taken from one GNU/Linux distribution. You may found information"
|
||||
echo " in package control files. The scripts theirselves were created by"
|
||||
echo " CongTianKong <https://gitee.com/CongTianKong>. There's no lisence"
|
||||
echo " nor copyright restriction with The script. Feel free to deal with."
|
||||
echo
|
||||
echo " This script auto-detects normal executable and appimage, and then"
|
||||
echo " uses specified script to run either. If you experienced issues,"
|
||||
echo " you may want to use them directly."
|
||||
echo " for appimage, you need ablrun-appimage."
|
||||
echo " for normal executable, you need ablrun-normal."
|
||||
echo -e "${TRANSHELL_CONTENT_SCRIPT_AUTO_DETECT}"
|
||||
echo -e "${TRANSHELL_CONTENT_APPIMAGE_INFO}"
|
||||
echo -e "${TRANSHELL_CONTENT_NORMAL_EXECUTABLE_INFO}"
|
||||
exit
|
||||
fi
|
||||
|
||||
@@ -33,7 +26,7 @@ else
|
||||
ABL_FILENAME=`which $1`
|
||||
if [ "$?" != "0" ]
|
||||
then
|
||||
echo "File not exists."
|
||||
echo -e "${TRANSHELL_CONTENT_FILE_NOT_EXISTS}"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
@@ -48,3 +41,4 @@ then
|
||||
fi
|
||||
|
||||
exec ablrun-appimage "$@"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user