Skip to content

Commit 933c981

Browse files
committed
add uv to manifest and remove unused yml file
1 parent 702b91e commit 933c981

File tree

2 files changed

+99
-125
lines changed

2 files changed

+99
-125
lines changed

flatpak/ai.jan.Jan.extension.cuda12.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

flatpak/ai.jan.Jan.yml

Lines changed: 99 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -16,104 +16,108 @@ finish-args:
1616
- --env=GTK_PATH=/app/lib/gtkmodules
1717

1818
modules:
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
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
2828

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
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
3636

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
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
4444

45+
- name: shaderc
46+
buildsystem: cmake-ninja
47+
builddir: true
48+
config-opts:
49+
- -DSHADERC_SKIP_COPYRIGHT_CHECK=ON
50+
- -DSHADERC_SKIP_EXAMPLES=ON
51+
- -DSHADERC_SKIP_TESTS=ON
52+
- -DSPIRV_SKIP_EXECUTABLES=ON
53+
- -DENABLE_GLSLANG_BINARIES=OFF
54+
cleanup:
55+
- /bin
56+
- /include
57+
- /lib/cmake
58+
- /lib/pkgconfig
59+
sources:
60+
- type: git
61+
url: https://github.com/google/shaderc.git
62+
tag: v2024.1
63+
commit: 47a9387ef5b3600d30d84c71ec77a59dc7db46fa
64+
# https://github.com/google/shaderc/blob/known-good/known_good.json
65+
- type: git
66+
url: https://github.com/KhronosGroup/SPIRV-Tools.git
67+
commit: dd4b663e13c07fea4fbb3f70c1c91c86731099f7
68+
dest: third_party/spirv-tools
69+
- type: git
70+
url: https://github.com/KhronosGroup/SPIRV-Headers.git
71+
commit: 5e3ad389ee56fca27c9705d093ae5387ce404df4
72+
dest: third_party/spirv-headers
73+
- type: git
74+
url: https://github.com/KhronosGroup/glslang.git
75+
commit: 142052fa30f9eca191aa9dcf65359fcaed09eeec
76+
dest: third_party/glslang
4577

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+
- name: cuda-toolkit
79+
only-arches:
80+
- x86_64
81+
cleanup:
82+
- /cuda
83+
buildsystem: simple
84+
build-commands:
85+
- mkdir /app/cuda
86+
- sh cuda_toolkit.run --silent --toolkit --toolkitpath=/app/cuda
87+
- mv /app/cuda/lib64/libcudart.* /app/lib/
88+
- mv /app/cuda/lib64/libcublas* /app/lib/
89+
sources:
90+
- type: file
91+
only-arches:
92+
- x86_64
93+
url: https://developer.download.nvidia.com/compute/cuda/12.8.0/local_installers/cuda_12.8.0_570.86.10_linux.run
94+
dest-filename: cuda_toolkit.run
95+
md5: c71027cf1a4ce84f80b9cbf81116e767
7896

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+
- name: python3-uv
98+
buildsystem: simple
99+
build-commands:
100+
- pip3 install --prefix=${FLATPAK_DEST} uv
97101

98-
- name: binary
99-
buildsystem: simple
100-
sources:
101-
- type: file
102-
url: https://github.com/menloresearch/jan/releases/download/v0.6.7/Jan_0.6.7_amd64.deb
103-
sha256: c69910acdebd1642ee68039deefbbf43f58fceb722481f754e16caa608f7250b
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
102+
- name: binary
103+
buildsystem: simple
104+
sources:
105+
- type: file
106+
url: https://github.com/menloresearch/jan/releases/download/v0.6.7/Jan_0.6.7_amd64.deb
107+
sha256: c69910acdebd1642ee68039deefbbf43f58fceb722481f754e16caa608f7250b
108+
only-arches: [x86_64]
109+
- type: file
110+
path: ai.jan.Jan.metainfo.xml
111+
build-commands:
112+
- ar -x *.deb
113+
- tar -xf data.tar.gz
114+
- 'install -Dm755 usr/bin/Jan /app/bin/Jan'
115+
- 'install -Dm755 usr/bin/bun /app/bin/bun'
116+
- 'install -Dm755 usr/bin/bun /app/bin/uv'
117+
- cp -rv usr/lib/* /app/lib/.
118+
- install -Dm644 usr/share/applications/Jan.desktop /app/share/applications/ai.jan.Jan.desktop
119+
- 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
120+
- install -Dm644 usr/share/icons/hicolor/128x128/apps/Jan.png /app/share/icons/hicolor/128x128/apps/ai.jan.Jan.png
121+
- install -Dm644 usr/share/icons/hicolor/32x32/apps/Jan.png /app/share/icons/hicolor/32x32/apps/ai.jan.Jan.png
122+
- install -Dm644 usr/share/icons/hicolor/256x256@2/apps/Jan.png /app/share/icons/hicolor/256x256@2/apps/ai.jan.Jan.png
123+
- install -Dm644 ai.jan.Jan.metainfo.xml /app/share/metainfo/ai.jan.Jan.rosary.metainfo.xml

0 commit comments

Comments
 (0)