File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -15,25 +15,24 @@ mkdir -p ./AppDir
1515cd ./AppDir
1616
1717# DOWNLOAD AND BUILD HTOP
18- CURRENTDIR=" $( dirname " $( readlink -f " $0 " ) " ) " # DO NOT MOVE THIS
1918HTOP_URL=$( wget -q https://api.github.com/repos/htop-dev/htop/releases -O - \
2019 | sed ' s/[()",{} ]/\n/g' | grep -oi ' https.*releases.*htop.*tar.xz' | head -1)
2120
22- wget " $HTOP_URL "
23- tar fx ./* .tar.*
21+ wget " $HTOP_URL " -O ./htop.tar.xz
2422
25- cd ./htop*
26- ./autogen.sh
27- ./configure --prefix=" $CURRENTDIR " --enable-sensors --enable-static
28- make
29- make install
30- cd ..
23+ tar fx ./htop.tar.xz && (
24+ cd ./htop*
25+ ./autogen.sh
26+ ./configure --prefix=" $( readlink -f ../) " --enable-sensors --enable-static
27+ make
28+ make install
29+ )
3130rm -rf ./htop* ./* .tar.*
3231
3332# PREPARE APPIMAGE
34- cp -v ./share/applications/* .desktop ./
35- cp -v ./share/pixmaps/* ./htop.png
36- cp -v ./share/pixmaps/* ./.DirIcon
33+ cp -v ./share/applications/htop .desktop ./
34+ cp -v ./share/pixmaps/htop.png ./
35+ cp -v ./share/pixmaps/htop.png ./.DirIcon
3736
3837ln -s ./bin/htop ./AppRun
3938chmod +x ./bin/htop
You can’t perform that action at this time.
0 commit comments