Skip to content

Commit 94b2e69

Browse files
committed
try to add appimage
Signed-off-by: Matthias Gatto <[email protected]>
1 parent 2a437d7 commit 94b2e69

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
json-search: json-search.o
33
$(CC) -ljson-c -std=c99 -Wall -Wextra json-search.o -o json-search
44

5+
appimagetool-x86_64.AppImage:
6+
wget https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
7+
chmod +x appimagetool-x86_64.AppImage
8+
9+
json-search-x86_64.AppImage: json-search appimagetool-x86_64.AppImage
10+
mkdir -p json-search.AppDir/usr/
11+
mkdir -p json-search.AppDir/usr/bin/
12+
mkdir -p json-search.AppDir/usr/lib/
13+
cp json-search json-search.AppDir/usr/bin/
14+
cp $(shell ldd json-search | grep json | cut -d ' ' -f 3) json-search.AppDir/usr/lib/
15+
./appimagetool-x86_64.AppImage json-search.AppDir
16+
517
clean:
618
rm json-search.o
719

json-search.AppDir/AppRun

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
"${APPDIR}/usr/bin/json-search" "$@"
263 KB
Loading
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Name=json-search
4+
Exec=json-search
5+
Comment=grep into like, and format print
6+
Categories=Development;
7+
Terminal=true
8+
Icon=appimage-logo

0 commit comments

Comments
 (0)