@@ -2,39 +2,118 @@ id: ai.jan.Jan
22runtime : org.gnome.Platform
33runtime-version : ' 48'
44sdk : org.gnome.Sdk
5- add-extensions :
6- org.freedesktop.Platform.GL.cuda :
7- version : ' 1.4'
8- directory : lib/GL/cuda-12.3
9- add-ld-path : lib
10- org.freedesktop.Platform.GL.vulkan :
11- version : ' 1.4'
12- directory : lib/GL/vulkan
13- add-ld-path : lib
145command : Jan
156finish-args :
167 - --socket=wayland # Permission needed to show the window
178 - --socket=fallback-x11 # Permission needed to show the window on X11
189 - --device=dri
1910 - --share=ipc
11+ - --share=network
12+ - --socket=pulseaudio # for future multimodality
13+ - --filesystem=xdg-run/dconf
14+ - --filesystem=~/.config/dconf:ro
15+ - --filesystem=~/.config/kioslaverc
16+ - --env=GTK_PATH=/app/lib/gtkmodules
2017
2118modules :
22- - name : binary
23- buildsystem : simple
24- sources :
25- - type : file
26- url : https://github.com/menloresearch/jan/releases/download/untagged-952b0124754621e9805e/Jan_0.6.0_amd64.deb
27- sha256 : 641316bbb92d0509f07366a636e3d902d81ac1d728a3975198bda74f21e61d9a
28- only-arches : [x86_64]
29- build-commands :
30- - ar -x *.deb
31- - tar -xf data.tar.gz
32- - ' install -Dm755 usr/bin/Jan /app/bin/Jan'
33- - ' install -Dm755 usr/bin/cortex-server /app/bin/cortex-server'
34- - ' install -Dm755 usr/bin/bun /app/bin/bun'
35- - ' install -Dm755 usr/bin/bun /app/bin/uv'
36- - install -Dm644 usr/share/applications/Jan.desktop /app/share/applications/ai.jan.Jan.desktop
37- - install -Dm644 usr/share/icons/hicolor/128x128/apps/jan.png /app/share/icons/hicolor/128x128/apps/ai.jan.Jan.png
38- - install -Dm644 usr/share/icons/hicolor/32x32/apps/jan.png /app/share/icons/hicolor/32x32/apps/ai.jan.Jan.png
39- - install -Dm644 usr/share/icons/hicolor/256x256@2/apps/jan.png /app/share/icons/hicolor/256x256@2/apps/ai.jan.Jan.png
40- - install -Dm644 ai.jan.Jan.metainfo.xml /app/share/metainfo/ai.jan.Jan.rosary.metainfo.xml
19+ - name : volk
20+ buildsystem : cmake-ninja
21+ builddir : true
22+ config-opts :
23+ - -DVOLK_INSTALL=ON
24+ sources :
25+ - type : archive
26+ url : https://github.com/zeux/volk/archive/refs/tags/vulkan-sdk-1.3.280.0.zip
27+ sha256 : 178875134d36e8b90f7e3ec31171355df3b71f47eba49cca2f98158e6552b011
28+
29+ - name : vulkan-headers
30+ buildsystem : cmake-ninja
31+ builddir : true
32+ sources :
33+ - type : archive
34+ url : https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/v1.3.283.zip
35+ sha256 : 2094159c87fb4b6d8f734bd4cad59564cef7ef32feb00cf6d8ca7e75a84df921
36+
37+ - name : vulkan-tools
38+ buildsystem : cmake-ninja
39+ builddir : true
40+ sources :
41+ - type : archive
42+ url : https://github.com/KhronosGroup/Vulkan-Tools/archive/refs/tags/v1.3.283.zip
43+ sha256 : 11ec6b474e91dc8cb6e7f22891294ede549bb6ed67c19d230e293b3fc9610883
44+
45+
46+ - name : shaderc
47+ buildsystem : cmake-ninja
48+ builddir : true
49+ config-opts :
50+ - -DSHADERC_SKIP_COPYRIGHT_CHECK=ON
51+ - -DSHADERC_SKIP_EXAMPLES=ON
52+ - -DSHADERC_SKIP_TESTS=ON
53+ - -DSPIRV_SKIP_EXECUTABLES=ON
54+ - -DENABLE_GLSLANG_BINARIES=OFF
55+ cleanup :
56+ - /bin
57+ - /include
58+ - /lib/cmake
59+ - /lib/pkgconfig
60+ sources :
61+ - type : git
62+ url : https://github.com/google/shaderc.git
63+ tag : v2024.1
64+ commit : 47a9387ef5b3600d30d84c71ec77a59dc7db46fa
65+ # https://github.com/google/shaderc/blob/known-good/known_good.json
66+ - type : git
67+ url : https://github.com/KhronosGroup/SPIRV-Tools.git
68+ commit : dd4b663e13c07fea4fbb3f70c1c91c86731099f7
69+ dest : third_party/spirv-tools
70+ - type : git
71+ url : https://github.com/KhronosGroup/SPIRV-Headers.git
72+ commit : 5e3ad389ee56fca27c9705d093ae5387ce404df4
73+ dest : third_party/spirv-headers
74+ - type : git
75+ url : https://github.com/KhronosGroup/glslang.git
76+ commit : 142052fa30f9eca191aa9dcf65359fcaed09eeec
77+ dest : third_party/glslang
78+
79+ # - name: cuda-toolkit
80+ # only-arches:
81+ # - x86_64
82+ # cleanup:
83+ # - /cuda
84+ # buildsystem: simple
85+ # build-commands:
86+ # - mkdir /app/cuda
87+ # - sh cuda_toolkit.run --silent --toolkit --toolkitpath=/app/cuda
88+ # - mv /app/cuda/lib64/libcudart.* /app/lib/
89+ # - mv /app/cuda/lib64/libcublas* /app/lib/
90+ # sources:
91+ # - type: file
92+ # only-arches:
93+ # - x86_64
94+ # url: https://developer.download.nvidia.com/compute/cuda/12.8.0/local_installers/cuda_12.8.0_570.86.10_linux.run
95+ # dest-filename: cuda_toolkit.run
96+ # md5: c71027cf1a4ce84f80b9cbf81116e767
97+
98+ - name : binary
99+ buildsystem : simple
100+ sources :
101+ - type : file
102+ url : https://github.com/menloresearch/jan/releases/download/v0.6.4/Jan_0.6.4_amd64.deb
103+ sha256 : 245bb497ee0890c6f41789280dcf509bf4c3707558f6b32f8388559516b3ad67
104+ only-arches : [x86_64]
105+ - type : file
106+ path : ai.jan.Jan.metainfo.xml
107+ build-commands :
108+ - ar -x *.deb
109+ - tar -xf data.tar.gz
110+ - ' install -Dm755 usr/bin/Jan /app/bin/Jan'
111+ - ' install -Dm755 usr/bin/bun /app/bin/bun'
112+ - ' install -Dm755 usr/bin/bun /app/bin/uv'
113+ - cp -rv usr/lib/* /app/lib/.
114+ - install -Dm644 usr/share/applications/Jan.desktop /app/share/applications/ai.jan.Jan.desktop
115+ - sed -e 's/Icon=Jan/Icon=ai.jan.Jan/g' -e 's#Exec=Jan#Exec=/app/bin/Jan#g' -i /app/share/applications/ai.jan.Jan.desktop
116+ - install -Dm644 usr/share/icons/hicolor/128x128/apps/Jan.png /app/share/icons/hicolor/128x128/apps/ai.jan.Jan.png
117+ - install -Dm644 usr/share/icons/hicolor/32x32/apps/Jan.png /app/share/icons/hicolor/32x32/apps/ai.jan.Jan.png
118+ - install -Dm644 usr/share/icons/hicolor/256x256@2/apps/Jan.png /app/share/icons/hicolor/256x256@2/apps/ai.jan.Jan.png
119+ - install -Dm644 ai.jan.Jan.metainfo.xml /app/share/metainfo/ai.jan.Jan.rosary.metainfo.xml
0 commit comments