Skip to content

Commit

Permalink
chore: add flathub submission
Browse files Browse the repository at this point in the history
  • Loading branch information
Minh141120 committed Jan 4, 2025
1 parent 9fb6b9f commit 77691da
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ai.menlo.jan.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Name=Jan
Comment=Local AI Assistant that runs 100% offline
Exec=run.sh
Icon=ai.menlo.jan
Type=Application
Categories=Development;
Keywords=AI;Assistant;LLM;ChatGPT;Local;Offline;
StartupNotify=true
42 changes: 42 additions & 0 deletions ai.menlo.jan.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>ai.menlo.jan</id>
<metadata_license>FSFAP</metadata_license>
<project_license>AGPL-3.0-only</project_license>
<name>Jan</name>
<summary>Local AI Assistant that runs 100% offline on your device</summary>

<description>
<p>
Jan is a ChatGPT-alternative that runs 100% offline on your device. Our goal is to make it easy for anyone to download and run LLMs and use AI with full control and privacy.
</p>
<p>Features:</p>
<ul>
<li>Model Library with popular LLMs like Llama, Gemma, Mistral, or Qwen</li>
<li>Connect to Remote AI APIs like Groq and OpenRouter</li>
<li>Local API Server with OpenAI-equivalent API</li>
<li>Extensions for customizing Jan</li>
</ul>
</description>

<launchable type="desktop-id">ai.menlo.jan.desktop</launchable>

<screenshots>
<screenshot type="default">
<image>https://catalog.jan.ai/flatpak/demo.gif</image>
</screenshot>
</screenshots>

<url type="homepage">https://jan.ai/</url>
<url type="bugtracker">https://github.com/janhq/jan/issues</url>

<content_rating type="oars-1.1" />

<releases>
<release version="0.5.12" date="2024-01-02">
<description>
<p>Latest stable release of Jan AI</p>
</description>
</release>
</releases>
</component>
Binary file added ai.menlo.jan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions ai.menlo.jan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
app-id: ai.menlo.jan
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'

sdk-extensions:
- org.freedesktop.Sdk.Extension.node20

command: run.sh
separate-locales: false

finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --device=dri
- --share=network
- --filesystem=home
- --env=ELECTRON_TRASH=gio

modules:
- name: jan
buildsystem: simple
build-commands:
- mkdir -p /app/bin /app/jan
- chmod +x jan-linux.AppImage
- ./jan-linux.AppImage --appimage-extract
- mv squashfs-root/* /app/jan/
- rm -rf squashfs-root jan-linux.AppImage
- install -Dm755 -t /app/bin/ run.sh
- install -Dm644 -t /app/share/applications/ ai.menlo.jan.desktop
- install -Dm644 -t /app/share/metainfo/ ai.menlo.jan.metainfo.xml
- install -Dm644 ai.menlo.jan.png /app/share/icons/hicolor/256x256/apps/ai.menlo.jan.png
sources:
- type: file
url: https://github.com/janhq/jan/releases/download/v0.5.12/jan-linux-x86_64-0.5.12.AppImage
dest-filename: jan-linux.AppImage
sha256: b48ca53f954eb79df02bf29f82c2ba1e2317d1886e8893032e7d0bf5763a6894
x-checker-data:
type: json
url: https://api.github.com/repos/janhq/jan/releases/latest
version-query: .tag_name | sub("^v"; "")
url-template: https://github.com/janhq/jan/releases/download/v$version/jan-linux-x86_64-$version.AppImage

- type: script
dest-filename: run.sh
commands:
- zypak-wrapper.sh /app/jan/jan "$@"
- type: file
path: ai.menlo.jan.desktop
- type: file
path: ai.menlo.jan.metainfo.xml
- type: file
path: ai.menlo.jan.png
3 changes: 3 additions & 0 deletions flathub.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"only-arches": ["x86_64"]
}

0 comments on commit 77691da

Please sign in to comment.