diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6795c06 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +miyoo-htop.zip +htop \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d2bde4b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM arm32v7/alpine:3.19.1 +WORKDIR /app +RUN apk add --update gcc make musl-dev ncurses ncurses-dev ncurses-static +RUN wget -O htop.tar.xz https://github.com/htop-dev/htop/releases/download/3.3.0/htop-3.3.0.tar.xz && tar -xvf htop.tar.xz +WORKDIR /app/htop-3.3.0 +RUN ./configure --enable-static --disable-dependency-tracking +RUN make -j$(nproc) diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..433c2d6 --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +docker run --rm -v $(pwd):/hostfs arm32v7/alpine:3.19.1 sh -C "/hostfs/cross-build.sh" diff --git a/config.json b/config.json new file mode 100755 index 0000000..422cc01 --- /dev/null +++ b/config.json @@ -0,0 +1,6 @@ +{ + "label": "htop", + "icon": "/mnt/SDCARD/App/Htop/htop.png", + "launch": "launch.sh", + "description": "an interactive process viewer" +} \ No newline at end of file diff --git a/cross-build.sh b/cross-build.sh new file mode 100755 index 0000000..3faac34 --- /dev/null +++ b/cross-build.sh @@ -0,0 +1,7 @@ +mkdir /tmp/htop-build && cd /tmp/htop-build +apk add --update gcc make musl-dev ncurses ncurses-dev ncurses-static +wget -O htop.tar.xz https://github.com/htop-dev/htop/releases/download/3.3.0/htop-3.3.0.tar.xz && tar -xvf htop.tar.xz +cd htop-* +./configure CFLAGS="-Os" --enable-static --disable-dependency-tracking +make -j$(nproc) +cp htop /hostfs/htop \ No newline at end of file diff --git a/dist.sh b/dist.sh new file mode 100755 index 0000000..4347112 --- /dev/null +++ b/dist.sh @@ -0,0 +1 @@ +zip -r miyoo-htop.zip htop htop.png config.json launch.sh terminfo.sh terminfoS \ No newline at end of file diff --git a/htop.png b/htop.png new file mode 100755 index 0000000..eb08344 Binary files /dev/null and b/htop.png differ diff --git a/launch.sh b/launch.sh new file mode 100755 index 0000000..a34750e --- /dev/null +++ b/launch.sh @@ -0,0 +1,3 @@ +#!/bin/sh +source $PWD/terminfo.sh +st -q -e $PWD/htop \ No newline at end of file diff --git a/terminfo.sh b/terminfo.sh new file mode 100755 index 0000000..4725488 --- /dev/null +++ b/terminfo.sh @@ -0,0 +1 @@ +export TERMINFO_DIRS="/mnt/SDCARD/App/Htop/terminfo" diff --git a/terminfo/E/Eterm b/terminfo/E/Eterm new file mode 100755 index 0000000..064f756 Binary files /dev/null and b/terminfo/E/Eterm differ diff --git a/terminfo/E/Eterm-color b/terminfo/E/Eterm-color new file mode 100755 index 0000000..064f756 Binary files /dev/null and b/terminfo/E/Eterm-color differ diff --git a/terminfo/a/ansi b/terminfo/a/ansi new file mode 100755 index 0000000..6de7978 Binary files /dev/null and b/terminfo/a/ansi differ diff --git a/terminfo/c/cons25 b/terminfo/c/cons25 new file mode 100755 index 0000000..5f138b4 Binary files /dev/null and b/terminfo/c/cons25 differ diff --git a/terminfo/c/cons25-debian b/terminfo/c/cons25-debian new file mode 100755 index 0000000..a689255 Binary files /dev/null and b/terminfo/c/cons25-debian differ diff --git a/terminfo/c/cygwin b/terminfo/c/cygwin new file mode 100755 index 0000000..8219fa6 Binary files /dev/null and b/terminfo/c/cygwin differ diff --git a/terminfo/d/dumb b/terminfo/d/dumb new file mode 100755 index 0000000..fd4091a Binary files /dev/null and b/terminfo/d/dumb differ diff --git a/terminfo/h/hurd b/terminfo/h/hurd new file mode 100755 index 0000000..75bd67c Binary files /dev/null and b/terminfo/h/hurd differ diff --git a/terminfo/l/linux b/terminfo/l/linux new file mode 100755 index 0000000..4ee980c Binary files /dev/null and b/terminfo/l/linux differ diff --git a/terminfo/m/mach b/terminfo/m/mach new file mode 100755 index 0000000..040c2ee Binary files /dev/null and b/terminfo/m/mach differ diff --git a/terminfo/m/mach-bold b/terminfo/m/mach-bold new file mode 100755 index 0000000..6325006 Binary files /dev/null and b/terminfo/m/mach-bold differ diff --git a/terminfo/m/mach-color b/terminfo/m/mach-color new file mode 100755 index 0000000..5415929 Binary files /dev/null and b/terminfo/m/mach-color differ diff --git a/terminfo/m/mach-gnu b/terminfo/m/mach-gnu new file mode 100755 index 0000000..c7174da Binary files /dev/null and b/terminfo/m/mach-gnu differ diff --git a/terminfo/m/mach-gnu-color b/terminfo/m/mach-gnu-color new file mode 100755 index 0000000..e18d5c7 Binary files /dev/null and b/terminfo/m/mach-gnu-color differ diff --git a/terminfo/p/pcansi b/terminfo/p/pcansi new file mode 100755 index 0000000..b24fba9 Binary files /dev/null and b/terminfo/p/pcansi differ diff --git a/terminfo/r/rxvt b/terminfo/r/rxvt new file mode 100755 index 0000000..6aab2ce Binary files /dev/null and b/terminfo/r/rxvt differ diff --git a/terminfo/r/rxvt-basic b/terminfo/r/rxvt-basic new file mode 100755 index 0000000..a8e1fd2 Binary files /dev/null and b/terminfo/r/rxvt-basic differ diff --git a/terminfo/r/rxvt-m b/terminfo/r/rxvt-m new file mode 100755 index 0000000..a8e1fd2 Binary files /dev/null and b/terminfo/r/rxvt-m differ diff --git a/terminfo/r/rxvt-unicode b/terminfo/r/rxvt-unicode new file mode 100755 index 0000000..9b54df4 Binary files /dev/null and b/terminfo/r/rxvt-unicode differ diff --git a/terminfo/r/rxvt-unicode-256color b/terminfo/r/rxvt-unicode-256color new file mode 100755 index 0000000..1979f7e Binary files /dev/null and b/terminfo/r/rxvt-unicode-256color differ diff --git a/terminfo/s/screen b/terminfo/s/screen new file mode 100755 index 0000000..7d246b3 Binary files /dev/null and b/terminfo/s/screen differ diff --git a/terminfo/s/screen-256color b/terminfo/s/screen-256color new file mode 100755 index 0000000..6cca951 Binary files /dev/null and b/terminfo/s/screen-256color differ diff --git a/terminfo/s/screen-256color-bce b/terminfo/s/screen-256color-bce new file mode 100755 index 0000000..edaecbd Binary files /dev/null and b/terminfo/s/screen-256color-bce differ diff --git a/terminfo/s/screen-bce b/terminfo/s/screen-bce new file mode 100755 index 0000000..0afccfd Binary files /dev/null and b/terminfo/s/screen-bce differ diff --git a/terminfo/s/screen-s b/terminfo/s/screen-s new file mode 100755 index 0000000..fc947db Binary files /dev/null and b/terminfo/s/screen-s differ diff --git a/terminfo/s/screen-w b/terminfo/s/screen-w new file mode 100755 index 0000000..9e6d964 Binary files /dev/null and b/terminfo/s/screen-w differ diff --git a/terminfo/s/screen.xterm-256color b/terminfo/s/screen.xterm-256color new file mode 100755 index 0000000..1961c2d Binary files /dev/null and b/terminfo/s/screen.xterm-256color differ diff --git a/terminfo/s/sun b/terminfo/s/sun new file mode 100755 index 0000000..52a2731 Binary files /dev/null and b/terminfo/s/sun differ diff --git a/terminfo/t/tmux b/terminfo/t/tmux new file mode 100755 index 0000000..2730356 Binary files /dev/null and b/terminfo/t/tmux differ diff --git a/terminfo/t/tmux-256color b/terminfo/t/tmux-256color new file mode 100755 index 0000000..472cea0 Binary files /dev/null and b/terminfo/t/tmux-256color differ diff --git a/terminfo/v/vt100 b/terminfo/v/vt100 new file mode 100755 index 0000000..22b593c Binary files /dev/null and b/terminfo/v/vt100 differ diff --git a/terminfo/v/vt102 b/terminfo/v/vt102 new file mode 100755 index 0000000..dc09c90 Binary files /dev/null and b/terminfo/v/vt102 differ diff --git a/terminfo/v/vt220 b/terminfo/v/vt220 new file mode 100755 index 0000000..35a4e0f Binary files /dev/null and b/terminfo/v/vt220 differ diff --git a/terminfo/v/vt52 b/terminfo/v/vt52 new file mode 100755 index 0000000..1a69821 Binary files /dev/null and b/terminfo/v/vt52 differ diff --git a/terminfo/w/wsvt25 b/terminfo/w/wsvt25 new file mode 100755 index 0000000..0ce5b56 Binary files /dev/null and b/terminfo/w/wsvt25 differ diff --git a/terminfo/w/wsvt25m b/terminfo/w/wsvt25m new file mode 100755 index 0000000..b016cd0 Binary files /dev/null and b/terminfo/w/wsvt25m differ diff --git a/terminfo/x/xterm b/terminfo/x/xterm new file mode 100755 index 0000000..93b9ba3 Binary files /dev/null and b/terminfo/x/xterm differ diff --git a/terminfo/x/xterm-256color b/terminfo/x/xterm-256color new file mode 100755 index 0000000..6426be1 Binary files /dev/null and b/terminfo/x/xterm-256color differ diff --git a/terminfo/x/xterm-color b/terminfo/x/xterm-color new file mode 100755 index 0000000..cce1d13 Binary files /dev/null and b/terminfo/x/xterm-color differ diff --git a/terminfo/x/xterm-debian b/terminfo/x/xterm-debian new file mode 100755 index 0000000..93b9ba3 Binary files /dev/null and b/terminfo/x/xterm-debian differ diff --git a/terminfo/x/xterm-mono b/terminfo/x/xterm-mono new file mode 100755 index 0000000..1ff1e21 Binary files /dev/null and b/terminfo/x/xterm-mono differ diff --git a/terminfo/x/xterm-r5 b/terminfo/x/xterm-r5 new file mode 100755 index 0000000..f63aa2f Binary files /dev/null and b/terminfo/x/xterm-r5 differ diff --git a/terminfo/x/xterm-r6 b/terminfo/x/xterm-r6 new file mode 100755 index 0000000..91c4f5d Binary files /dev/null and b/terminfo/x/xterm-r6 differ diff --git a/terminfo/x/xterm-vt220 b/terminfo/x/xterm-vt220 new file mode 100755 index 0000000..8c0475a Binary files /dev/null and b/terminfo/x/xterm-vt220 differ diff --git a/terminfo/x/xterm-xfree86 b/terminfo/x/xterm-xfree86 new file mode 100755 index 0000000..38ff566 Binary files /dev/null and b/terminfo/x/xterm-xfree86 differ