-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathai.nodetool.NodeTool.yml
More file actions
62 lines (61 loc) · 1.99 KB
/
Copy pathai.nodetool.NodeTool.yml
File metadata and controls
62 lines (61 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
app-id: ai.nodetool.NodeTool
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
command: nodetool
separate-locales: false
finish-args:
# X11 + XShm access
- --share=ipc
- --socket=x11
# Wayland access
- --socket=wayland
# GPU acceleration
- --device=dri
# Audio access
- --socket=pulseaudio
# Network access (for API calls and model downloads)
- --share=network
# Filesystem access for projects and data
- --filesystem=home
# Allow communication with external services
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=com.canonical.AppMenu.Registrar
# System tray access
- --talk-name=org.freedesktop.portal.Desktop
# Allow microphone access (for audio recording features)
- --device=all
# Allow webcam access (for video recording features)
- --env=ELECTRON_TRASH=gio
modules:
- name: nodetool
buildsystem: simple
build-commands:
- install -Dm755 nodetool.sh /app/bin/nodetool
- install -Dm644 ai.nodetool.NodeTool.desktop /app/share/applications/ai.nodetool.NodeTool.desktop
- install -Dm644 ai.nodetool.NodeTool.metainfo.xml /app/share/metainfo/ai.nodetool.NodeTool.metainfo.xml
- |
for size in 16 24 32 48 64 128 256 512; do
if [ -f "icons/icon_${size}x${size}.png" ]; then
install -Dm644 "icons/icon_${size}x${size}.png" "/app/share/icons/hicolor/${size}x${size}/apps/ai.nodetool.NodeTool.png"
fi
done
- install -Dm644 nodetool-app/* /app/nodetool/ -t
sources:
- type: file
path: ai.nodetool.NodeTool.desktop
- type: file
path: ai.nodetool.NodeTool.metainfo.xml
- type: dir
path: linux_icons
dest: icons
- type: script
dest-filename: nodetool.sh
commands:
- exec /app/nodetool/nodetool "$@"
- type: dir
path: dist/linux-unpacked
dest: nodetool-app