Add a Linux AppImage to the release builds#707
Draft
Irozuku wants to merge 6 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Linux AppImage build to the release workflow so every release ships a self contained, CPU only Linux executable alongside the existing Windows/macOS installers. The AppImage is built with
python-appimage(embeds a manylinux CPython + the app and its deps), so end users need no Python installed. Includes small launcher fixes required to make the app run correctly inside an AppImage.Type of Change
Check all that apply like this [x]:
Changes (by file)
.github/workflows/publish.yml: newbuild-linux-appimagejob (runs onubuntu-22.04for glibc 2.35). Builds the wheel (frontend bundled), generates the icon, builds the AppImage viapython-appimage, and uploads it. Thegithub-releasejob now depends on it and publishesdashAI-<version>-x64-linux.AppImage. CPU torch/llama-cpp wheels are selected viaPIP_INDEX_URL/PIP_EXTRA_INDEX_URL.appimage/requirements.txt: recipe deps (bare names only —torch,torchvision,llama-cpp-python); the locally built wheel path is appended at build time.appimage/entrypoint.sh: runs thedashaiconsole script via the embedded Python; relaunches inside a terminal emulator when double-clicked (headless fallback if none).appimage/dashai.desktop,appimage/dashai.appdata.xml: desktop + AppStream metadata required by the recipe.appimage/.gitattributes: forces LF endings on the shell/desktop files.DashAI/__main__.py: run the Huey consumer in a thread when running inside an AppImage (detected viaAPPDIR/APPIMAGE), matching the existing PyInstallersys.frozenpath.Testing (optional)
localhost:8000, and CPU llama-cpp LLM inference works.Notes (optional)
--appimage-extract-and-run). No Python needed.