snap: improve the snap (#318)
1. cleaned up the manifest 2. added arm64 support
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
name: alpaca
|
||||
base: core24
|
||||
adopt-info: alpaca
|
||||
summary: An Ollama client made with GTK4 and Adwaita
|
||||
description: |
|
||||
Alpaca is an Ollama client where you can manage and chat with multiple models,
|
||||
Alpaca provides an easy and begginer friendly way of interacting with local AI,
|
||||
everything is open source and powered by Ollama.
|
||||
|
||||
platforms:
|
||||
amd64:
|
||||
arm64:
|
||||
|
||||
confinement: strict
|
||||
grade: stable
|
||||
@@ -23,21 +19,14 @@ slots:
|
||||
apps:
|
||||
alpaca:
|
||||
command: usr/bin/alpaca
|
||||
desktop: meta/gui/alpaca.desktop
|
||||
common-id: com.jeffser.Alpaca
|
||||
extensions:
|
||||
- gnome
|
||||
plugs:
|
||||
- network
|
||||
- network-bind
|
||||
- desktop
|
||||
- desktop-legacy
|
||||
- wayland
|
||||
- opengl
|
||||
- home
|
||||
- removable-media
|
||||
slots:
|
||||
- dbus-alpaca
|
||||
|
||||
ollama:
|
||||
command: bin/ollama
|
||||
@@ -46,7 +35,6 @@ apps:
|
||||
- removable-media
|
||||
- network
|
||||
- network-bind
|
||||
- opengl
|
||||
|
||||
ollama-daemon:
|
||||
command: bin/ollama serve
|
||||
@@ -58,7 +46,6 @@ apps:
|
||||
- removable-media
|
||||
- network
|
||||
- network-bind
|
||||
- opengl
|
||||
|
||||
parts:
|
||||
# Python dependencies
|
||||
@@ -75,7 +62,9 @@ parts:
|
||||
# Ollama plugin
|
||||
ollama:
|
||||
plugin: dump
|
||||
source: https://github.com/ollama/ollama/releases/download/v0.3.10/ollama-linux-amd64.tgz
|
||||
source:
|
||||
- on amd64: https://github.com/ollama/ollama/releases/download/v0.3.10/ollama-linux-amd64.tgz
|
||||
- on arm64: https://github.com/ollama/ollama/releases/download/v0.3.10/ollama-linux-arm64.tgz
|
||||
|
||||
# Alpaca app
|
||||
alpaca:
|
||||
@@ -86,26 +75,19 @@ parts:
|
||||
source-depth: 1
|
||||
meson-parameters:
|
||||
- --prefix=/snap/alpaca/current/usr
|
||||
build-packages:
|
||||
- meson
|
||||
- ninja-build
|
||||
- pkg-config
|
||||
- libcairo2-dev
|
||||
- libgtk-3-dev
|
||||
- libglib2.0-dev
|
||||
- gettext
|
||||
- desktop-file-utils
|
||||
- appstream
|
||||
override-pull: |
|
||||
craftctl default
|
||||
craftctl set version=$(git describe --tags --abbrev=0)
|
||||
override-build: |
|
||||
craftctl default
|
||||
sed -i '1c#!/usr/bin/env python3' $CRAFT_PART_INSTALL/snap/alpaca/current/usr/bin/alpaca
|
||||
stage-packages:
|
||||
- libnuma1
|
||||
parse-info:
|
||||
- usr/share/metainfo/com.jeffser.Alpaca.metainfo.xml
|
||||
organize:
|
||||
snap/alpaca/current/usr: usr
|
||||
snap/alpaca/current: .
|
||||
after: [python-deps]
|
||||
|
||||
deps:
|
||||
plugin: nil
|
||||
after: [alpaca]
|
||||
stage-packages:
|
||||
- libnuma1
|
||||
prime:
|
||||
- usr/lib/*/libnuma.so.1*
|
||||
|
||||
Reference in New Issue
Block a user