From 48ce8b03f6a0aee0a9669aa2998bbd2bf63bebac Mon Sep 17 00:00:00 2001 From: wukongdaily <11958171+wukongdaily@user.noreply.gitee.com> Date: Tue, 27 Feb 2024 12:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9apk=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shells/box.sh | 1 - shells/kodi.sh | 3 +-- shells/sony.sh | 1 - shells/tv.sh | 12 ++++++------ 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/shells/box.sh b/shells/box.sh index 12192d7..36332e0 100644 --- a/shells/box.sh +++ b/shells/box.sh @@ -234,7 +234,6 @@ handle_choice() { show_menu() { current_date=$(date +%Y%m%d) - mkdir -p /tmp/upload clear echo "***********************************************************************" echo -e "* ${YELLOW}TVBOX助手 Docker版 (${current_date})${NC} " diff --git a/shells/kodi.sh b/shells/kodi.sh index 24d37d7..02fb2d6 100644 --- a/shells/kodi.sh +++ b/shells/kodi.sh @@ -336,10 +336,9 @@ handle_choice() { show_menu() { current_date=$(date +%Y%m%d) - mkdir -p /tmp/upload clear echo "***********************************************************************" - echo -e "* ${YELLOW}KODI设置助手OpenWrt版 (${current_date})${NC} " + echo -e "* ${YELLOW}KODI设置助手Docker版 (${current_date})${NC} " echo -e "* ${GREEN}KODI太复杂了 必须得上手段了${NC} " echo -e "* ${RED}请确保电视盒子和OpenWrt路由器处于${NC}${BLUE}同一网段${NC}\n* ${RED}且电视盒子开启了${NC}${BLUE}USB调试模式(adb开关)${NC} " echo "* Developed by @wukongdaily " diff --git a/shells/sony.sh b/shells/sony.sh index 77b71d7..8807b55 100644 --- a/shells/sony.sh +++ b/shells/sony.sh @@ -325,7 +325,6 @@ handle_choice() { show_menu() { current_date=$(date +%Y%m%d) - mkdir -p /tmp/upload clear echo "***********************************************************************" echo -e "* ${YELLOW}Sony电视专用助手Docker版 (${current_date})${NC} " diff --git a/shells/tv.sh b/shells/tv.sh index 34899b6..20fc90b 100644 --- a/shells/tv.sh +++ b/shells/tv.sh @@ -241,13 +241,13 @@ install_apk() { # 批量安装apk功能 install_all_apks() { if check_adb_connected; then - # 获取/tmp/upload目录下的apk文件列表 - apk_files=($(ls /tmp/upload/*.apk 2>/dev/null)) + # 获取/tvhelper/shells/data目录下的apk文件列表 + apk_files=($(ls /tvhelper/shells/data/*.apk 2>/dev/null)) total_files=${#apk_files[@]} # 检查是否有APK文件 if [ "$total_files" -eq "0" ]; then - echo -e "${RED}/tmp/upload 目录下不包含任何apk文件,请先拷贝apk文件到此目录.${NC}" + echo -e "${RED}/tvhelper/shells/data 目录下不包含任何apk文件,请先拷贝apk文件到此目录.${NC}" return 1 fi @@ -561,7 +561,7 @@ menu_options=( "安装Downloader" "安装my-tv最新版(lizongying)" "安装BBLL最新版(xiaye13579)" - "自定义批量安装/tmp/upload目录下的所有apk" + "自定义批量安装data目录下的所有apk" "安装Mix-Apps用于显示全部应用" "进入KODI助手" "安装Fire TV版Youtube(免谷歌框架)" @@ -586,7 +586,7 @@ commands=( ["安装BBLL最新版(xiaye13579)"]="install_BBLL_latest_apk" ["安装文件管理器+"]="install_file_manager_plus" ["安装Downloader"]="install_downloader" - ["自定义批量安装/tmp/upload目录下的所有apk"]="install_all_apks" + ["自定义批量安装data目录下的所有apk"]="install_all_apks" ["安装Mix-Apps用于显示全部应用"]="install_mixapps" ["进入KODI助手"]="kodi_helper" ["安装Fire TV版Youtube(免谷歌框架)"]="install_youtube_firetv" @@ -650,7 +650,7 @@ handle_choice() { show_menu() { current_date=$(date +%Y%m%d) - mkdir -p /tmp/upload + mkdir -p /tvhelper/shells/data clear echo "***********************************************************************" echo -e "* ${YELLOW}遥控助手/盒子助手Docker版 (${current_date})${NC} "