-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcom.inochi2d.inochi-creator.yml
65 lines (59 loc) · 2.56 KB
/
com.inochi2d.inochi-creator.yml
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
63
64
65
id: com.inochi2d.inochi-creator
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.ldc
- org.freedesktop.Sdk.Extension.llvm16
add-extensions:
- org.freedesktop.Platform.ffmpeg-full:
version: '23.08'
directory: lib/ffmpeg
add-ld-path: .
command: inochi-creator
finish-args:
- --device=all # OpenGL rendering
- --socket=fallback-x11
- --share=ipc
- --socket=wayland
- --filesystem=host # Needed for file drop and "Recent Files" handling
modules:
- shared-modules/SDL2/SDL2-with-libdecor.json
# --- Inochi Creator ---
- name: Inochi-Creator
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/ldc/bin
build-commands:
- chmod +x ./gentl.sh; ./gentl.sh
- dub add-path .flatpak-dub; dub add-local .flatpak-dub/semver/*/semver; dub
add-local .flatpak-dub/gitver/*/gitver; dub build --skip-registry=all --config=update-version;
dub build --skip-registry=all --config=meta; dub build --skip-registry=all
--build=release --config=linux-demo
- install -Dm 755 ./out/inochi-creator /app/bin/inochi-creator
- install -Dm644 ./out/*.mo /app/bin
- install -Dm644 ./metainfo/com.inochi2d.inochi-creator.metainfo.xml /app/share/metainfo/com.inochi2d.inochi-creator.metainfo.xml
- install -Dm644 ./branding//creator/icon_128.png /app/share/icons/hicolor/128x128/apps/com.inochi2d.inochi-creator.png
- install -Dm644 ./branding/creator/icon_256.png /app/share/icons/hicolor/256x256/apps/com.inochi2d.inochi-creator.png
- install -Dm644 ./branding/creator/icon_512.png /app/share/icons/hicolor/512x512/apps/com.inochi2d.inochi-creator.png
- desktop-file-edit --set-name="Inochi Creator" --set-icon="com.inochi2d.inochi-creator"
./build-aux/linux/inochi-creator.desktop
- install -Dm644 ./build-aux/linux/inochi-creator.desktop /app/share/applications/com.inochi2d.inochi-creator.desktop
sources:
- dub-add-local-sources.json
- type: git
url: https://github.com/Inochi2D/inochi-creator.git
commit: 371e5f4e21117102dbecc82371bfd9a6e2f5df02
tag: v0.8.6
disable-shallow-clone: true
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
is-main-source: true
- type: git
url: https://github.com/Inochi2D/branding.git
commit: a412602d346ba69c63237217ae286112e300927d
dest: ./branding
- type: file
path: com.inochi2d.inochi-creator.metainfo.xml
dest: ./metainfo