Skip to content

Commit 9e099ad

Browse files
authored
add missing binary to AppRun
1 parent f5add95 commit 9e099ad

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

android-tools-appimage.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ cat >> ./AppRun << 'EOF'
3131
CURRENTDIR="$(dirname "$(readlink -f "$0")")"/usr/bin
3232
UDEVNOTICE='No android udev rules detected, use "--getudev" to install'
3333
UDEVREPO="https://github.com/M0Rf30/android-udev-rules.git"
34-
export PATH="$CURRENTDIR:$PATH"
3534
cat /etc/udev/rules.d/*droid.rules >/dev/null 2>&1 && UDEVNOTICE=""
3635
ARGV0="${ARGV0#./}"
36+
export PATH="$CURRENTDIR:$PATH"
3737
3838
_get_udev_rules() {
3939
if cat /etc/udev/rules.d/*droid.rules >/dev/null 2>&1; then
@@ -71,11 +71,11 @@ _get_udev_rules() {
7171
7272
_get_symlinks() {
7373
BINDIR="${XDG_BIN_HOME:-$HOME/.local/bin}"
74-
links="adb etc1tool fastboot make_f2fs make_f2fs_casefold mke2fs sqlite3"
74+
links="adb etc1tool fastboot hprof-conv make_f2fs make_f2fs_casefold mke2fs sqlite3"
7575
echo ""
7676
echo "This function will make wrapper symlinks in $BINDIR"
77-
echo "that will point to $APPIMAGE"
78-
echo "with the names: \"$links\""
77+
echo "that will point to $APPIMAGE with the names:"
78+
echo "$links" | tr ' ' '\n'
7979
echo ""
8080
echo "Make sure there are not existing files $BINDIR with those names"
8181
printf '\n%s' "Proceed with the symlink creation? (Y/n): "
@@ -93,14 +93,14 @@ _get_symlinks() {
9393
9494
# logic
9595
case $ARGV0 in
96-
'adb'|'etc1tool'|'fastboot'|'make_f2fs'|\
97-
'make_f2fs_casefold'|'mke2fs'|'sqlite3')
96+
'adb'|'etc1tool'|'fastboot'|'hprof-conv'|\
97+
'make_f2fs'|'make_f2fs_casefold'|'mke2fs'|'sqlite3')
9898
"$CURRENTDIR/$ARGV0" "$@" || echo "$UDEVNOTICE"
9999
;;
100100
*)
101101
case $1 in
102-
'adb'|'etc1tool'|'fastboot'|'make_f2fs'|\
103-
'make_f2fs_casefold'|'mke2fs'|'sqlite3')
102+
'adb'|'etc1tool'|'fastboot'|'hprof-conv'|\
103+
'make_f2fs'|'make_f2fs_casefold'|'mke2fs'|'sqlite3')
104104
option="$1"
105105
shift
106106
"$CURRENTDIR/$option" "$@" || echo "$UDEVNOTICE"

0 commit comments

Comments
 (0)