File tree Expand file tree Collapse file tree 3 files changed +54
-6
lines changed
Expand file tree Collapse file tree 3 files changed +54
-6
lines changed Original file line number Diff line number Diff line change 22system-index.txt
33lisp-inference
44docs /
5+ * .AppImage
6+ * .AppDir
Original file line number Diff line number Diff line change 11SBCL_CMD := sbcl --noinform --disable-debugger --load scripts/fix-quicklisp.lisp --load
2- OBJECTS := lisp-inference
32DOCKER_IMG = lisp-inference
43VERSION := latest
54PUBLIC_IMG = ryukinix/$(DOCKER_IMG ) :$(VERSION )
65
7- all : $(OBJECTS )
8-
9-
10- $(OBJECTS ) : src/* .lisp
6+ lisp-inference : src/* .lisp
117 $(SBCL_CMD ) scripts/build.lisp
128
139
@@ -54,4 +50,7 @@ docker-publish: docker-build
5450deploy : docker-publish
5551 ssh starfox bash /home/lerax/Deploy/logic.sh
5652
57- .PHONY : check docker-build docs
53+ appimage : lisp-inference
54+ bash scripts/appimage.sh
55+
56+ .PHONY : check docker-build docs appimage
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ APPIMAGEDIR=.appimage
6+ mkdir -p " $APPIMAGEDIR "
7+
8+ APPIMAGE_TOOL_URL=" https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
9+ APPIMAGE_TOOL_PATH=" $APPIMAGEDIR /appimagetool-x86_64.AppImage"
10+
11+ if [ ! -f " $APPIMAGE_TOOL_PATH " ]; then
12+ echo " Downloading appimagetool..."
13+ wget -c " $APPIMAGE_TOOL_URL " -O " $APPIMAGE_TOOL_PATH "
14+ chmod +x " $APPIMAGE_TOOL_PATH "
15+ else
16+ echo " appimagetool already exists, skipping download."
17+ fi
18+
19+ APPDIR=" $APPIMAGEDIR /lisp-inference.AppDir"
20+
21+ # Create the AppDir structure
22+ mkdir -p " $APPDIR /usr/bin/"
23+
24+ # Create the .desktop file
25+ cat > " $APPDIR /lisp-inference.desktop" << EOL
26+ [Desktop Entry]
27+ Name=lisp-inference
28+ Exec=AppRun
29+ Icon=lisp-inference
30+ Type=Application
31+ Categories=Utility;
32+ EOL
33+
34+ # Create AppRun
35+ cat > " $APPDIR /AppRun" << EOL
36+ #!/bin/sh
37+ HERE=\$ (dirname "\$ (readlink -f "\$ {0}")")
38+ "\$ {HERE}/usr/bin/lisp-inference" "\$ @"
39+ EOL
40+ chmod +x " $APPDIR /AppRun"
41+
42+ # Copy the binary and icon
43+ cp ./lisp-inference " $APPDIR /usr/bin/"
44+ cp ./lisp-inference.png " $APPDIR /lisp-inference.png"
45+
46+ # Run appimagetool
47+ " $APPIMAGE_TOOL_PATH " " $APPDIR "
You can’t perform that action at this time.
0 commit comments