Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
allanxp4 committed May 1, 2024
0 parents commit 6e55803
Show file tree
Hide file tree
Showing 54 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
miyoo-htop.zip
htop
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker run --rm -v $(pwd):/hostfs arm32v7/alpine:3.19.1 sh -C "/hostfs/cross-build.sh"
6 changes: 6 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"label": "htop",
"icon": "/mnt/SDCARD/App/Htop/htop.png",
"launch": "launch.sh",
"description": "an interactive process viewer"
}
7 changes: 7 additions & 0 deletions cross-build.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zip -r miyoo-htop.zip htop htop.png config.json launch.sh terminfo.sh terminfoS
Binary file added htop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
source $PWD/terminfo.sh
st -q -e $PWD/htop
1 change: 1 addition & 0 deletions terminfo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export TERMINFO_DIRS="/mnt/SDCARD/App/Htop/terminfo"
Binary file added terminfo/E/Eterm
Binary file not shown.
Binary file added terminfo/E/Eterm-color
Binary file not shown.
Binary file added terminfo/a/ansi
Binary file not shown.
Binary file added terminfo/c/cons25
Binary file not shown.
Binary file added terminfo/c/cons25-debian
Binary file not shown.
Binary file added terminfo/c/cygwin
Binary file not shown.
Binary file added terminfo/d/dumb
Binary file not shown.
Binary file added terminfo/h/hurd
Binary file not shown.
Binary file added terminfo/l/linux
Binary file not shown.
Binary file added terminfo/m/mach
Binary file not shown.
Binary file added terminfo/m/mach-bold
Binary file not shown.
Binary file added terminfo/m/mach-color
Binary file not shown.
Binary file added terminfo/m/mach-gnu
Binary file not shown.
Binary file added terminfo/m/mach-gnu-color
Binary file not shown.
Binary file added terminfo/p/pcansi
Binary file not shown.
Binary file added terminfo/r/rxvt
Binary file not shown.
Binary file added terminfo/r/rxvt-basic
Binary file not shown.
Binary file added terminfo/r/rxvt-m
Binary file not shown.
Binary file added terminfo/r/rxvt-unicode
Binary file not shown.
Binary file added terminfo/r/rxvt-unicode-256color
Binary file not shown.
Binary file added terminfo/s/screen
Binary file not shown.
Binary file added terminfo/s/screen-256color
Binary file not shown.
Binary file added terminfo/s/screen-256color-bce
Binary file not shown.
Binary file added terminfo/s/screen-bce
Binary file not shown.
Binary file added terminfo/s/screen-s
Binary file not shown.
Binary file added terminfo/s/screen-w
Binary file not shown.
Binary file added terminfo/s/screen.xterm-256color
Binary file not shown.
Binary file added terminfo/s/sun
Binary file not shown.
Binary file added terminfo/t/tmux
Binary file not shown.
Binary file added terminfo/t/tmux-256color
Binary file not shown.
Binary file added terminfo/v/vt100
Binary file not shown.
Binary file added terminfo/v/vt102
Binary file not shown.
Binary file added terminfo/v/vt220
Binary file not shown.
Binary file added terminfo/v/vt52
Binary file not shown.
Binary file added terminfo/w/wsvt25
Binary file not shown.
Binary file added terminfo/w/wsvt25m
Binary file not shown.
Binary file added terminfo/x/xterm
Binary file not shown.
Binary file added terminfo/x/xterm-256color
Binary file not shown.
Binary file added terminfo/x/xterm-color
Binary file not shown.
Binary file added terminfo/x/xterm-debian
Binary file not shown.
Binary file added terminfo/x/xterm-mono
Binary file not shown.
Binary file added terminfo/x/xterm-r5
Binary file not shown.
Binary file added terminfo/x/xterm-r6
Binary file not shown.
Binary file added terminfo/x/xterm-vt220
Binary file not shown.
Binary file added terminfo/x/xterm-xfree86
Binary file not shown.

0 comments on commit 6e55803

Please sign in to comment.