Skip to content

Commit ba78292

Browse files
committed
Update
1 parent 78e2c49 commit ba78292

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

app/src/main/assets/home/etc/tool-tree.bash

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,15 @@ Info() {
529529
icon = "'`urlpng info`'"
530530
config-sh = "'$ETC'/tool-tree.bash Update"
531531
handler = """
532-
progress 0.02 10 &
533532
if [ "$menu_id" == "share" ]; then
534533
echo "am:[start -a android.intent.action.SEND -t text/plain --es android.intent.extra.TEXT https://zenlua.github.io/Tool-Tree]"
534+
elif [ "$menu_id" == "beta" ]; then
535+
if [ -f "$TMP/Tool-Tree.apk" ]; then
536+
openfile "$TMP/Tool-Tree.apk"
537+
else
538+
taive "https://github.com/Zenlua/Tool-Tree/releases/download/beta/Tool-Tree-beta.apk" "$TMP/Tool-Tree.apk" 2>&1
539+
openfile "$TMP/Tool-Tree.apk"
540+
fi
535541
fi
536542
"""
537543
@@ -540,6 +546,11 @@ Info() {
540546
type = "default"
541547
title = "'$share_text'"
542548
silent = true
549+
550+
[[group.page.options]]
551+
key = "beta"
552+
type = "default"
553+
title = "Tool-Tree-beta.apk"
543554
544555
[[group]]
545556
[[group.page]]

0 commit comments

Comments
 (0)