-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathio.github.FaithlifeCommunity.OuDedetai.yml
More file actions
185 lines (176 loc) · 7.42 KB
/
io.github.FaithlifeCommunity.OuDedetai.yml
File metadata and controls
185 lines (176 loc) · 7.42 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
id: io.github.FaithlifeCommunity.OuDedetai
runtime: org.freedesktop.Platform
runtime-version: &runtime-version '24.08'
sdk: org.freedesktop.Sdk
command: /app/bin/entrypoint.sh
base: org.winehq.Wine
base-version: &app-version 'stable-24.08'
inherit-extensions:
- org.freedesktop.Platform.Compat.i386
- org.freedesktop.Platform.Compat.i386.Debug
- org.freedesktop.Platform.GL32
- org.freedesktop.Platform.GL32.Debug
- org.freedesktop.Platform.VAAPI.Intel.i386
- org.freedesktop.Platform.ffmpeg-full
- org.freedesktop.Platform.ffmpeg_full.i386
- org.winehq.Wine.gecko
- org.winehq.Wine.mono
- org.winehq.Wine.DLLs
appstream-compose: false
modules:
# Create 32-bit directories so the extentions can mount at runtime
# https://github.com/fastrizwaan/flatpak-wine/blob/95aec77b49e545319e20c4b7936835002b422b3c/flatpak-winezgui/io.github.fastrizwaan.WineZGUI.yml#L61C2-L77C28
- name: i386 dirs
buildsystem: simple
build-commands:
- mkdir -p /app/lib/i386-linux-gnu
- mkdir -p /app/lib/i386-linux-gnu/GL
- mkdir -p /app/lib/debug/lib/i386-linux-gnu
- mkdir -p /app/lib/dri/intel-vaapi-driver
- mkdir -p /app/lib/i386-linux-gnu/dri/intel-vaapi-driver
- mkdir -p /app/lib/udev/rules.d
- mkdir -p /app/extensions/Plugins
- mkdir -p /app/lib64
- mkdir -p /app/lib32
- mkdir -p /app/lib/ffmpeg
- mkdir -p /app/lib32/ffmpeg
- mkdir -p /app/utils
- install -Dm644 ld.so.conf ${FLATPAK_DEST}/etc/ld.so.conf
- mkdir -p ${FLATPAK_DEST}/{,lib/debug/}lib/i386-linux-gnu/GL
- mkdir -p ${FLATPAK_DEST}/dlls
sources:
- type: inline
dest-filename: ld.so.conf
contents: |
/app/lib32
/app/lib/i386-linux-gnu
- name: oudedetai
buildsystem: simple
build-commands:
# Our installer expects sudo to be installed. Make it happy.
- install -Dm755 sudo /app/bin/sudo
- install -Dm755 sudo /app/bin/pkexec
# Add entrypoints
- install -Dm755 entrypoint.sh /app/bin/entrypoint.sh
- install -Dm755 entrypoint.product.sh /app/bin/
- install -Dm755 oudedetai /app/bin/oudedetai
# Copy metadata information
- install -Dm644 appdata.xml ${FLATPAK_DEST}/share/appdata/${FLATPAK_ID}.appdata.xml
- install -Dm644 oudedetai.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
- install -Dm644 oudedetai.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/oudedetai.png
- install -Dm644 logos.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/logos.png
- install -Dm644 verbum.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/verbum.png
- install -Dm644 oudedetai.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 logos.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.Logos.desktop
- install -Dm644 verbum.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.Verbum.desktop
sources:
- type: script
dest-filename: sudo
commands: []
- type: script
dest-filename: entrypoint.sh
commands:
- export WINE_EXE=/app/bin/wine64
- export DIALOG=tk
- export INSTALLDIR=$XDG_DATA_HOME/LogosBible10
- /app/bin/oudedetai "$@"
- type: script
dest-filename: entrypoint.product.sh
commands:
- export FLPRODUCT=$1
- export TARGETVERSION=10
# Run Logos after installing since it crashes once while downloading resources.
# Opening it again recovers
- if [ ! -f $XDG_DATA_HOME/${1}Bible10/data/wine64_bottle/drive_c/users/*/AppData/Local/$1/${1}.exe ]; then /app/bin/entrypoint.sh --install-app -y && /app/bin/entrypoint.sh --run-installed-app; fi
- /app/bin/entrypoint.sh --run-installed-app
# FIXME: Should this pull from github releases?
- type: file
path: ./dist/oudedetai
dest-filename: oudedetai
- type: file
path: ./snap/gui/oudedetai.png
dest-filename: oudedetai.png
- type: file
path: ./snap/gui/logos.png
dest-filename: logos.png
- type: file
path: ./snap/gui/verbum.png
dest-filename: verbum.png
# FIXME: Also support logos4 and libronixdls URL Schemes
- type: inline
dest-filename: oudedetai.desktop
contents: |
[Desktop Entry]
Name=Ou Dedetai
GenericName=FaithLife Wine App Installer
Comment=Installs and manages either Logos or Verbum via Wine and Flatpak. Community supported.
Exec=/app/bin/entrypoint.sh
Icon=/app/share/icons/hicolor/512x512/apps/oudedetai.png
Terminal=false
Type=Application
StartupWMClass=Ou Dedetai
Categories=Education;Spirituality;Languages;Literature;Maps;
Keywords=Logos;Verbum;FaithLife;Bible;Control;Christianity;Jesus;
- type: inline
dest-filename: logos.desktop
contents: |
[Desktop Entry]
Name=Logos Bible
GenericName=Logos
Comment=Runs Faithlife Bible Software via Wine and Flatpak. Community supported.
Exec=/app/bin/entrypoint.product.sh Logos
Icon=/app/share/icons/hicolor/512x512/apps/logos.png
Terminal=false
Type=Application
StartupWMClass=logos.exe
Categories=Education;Spirituality;Languages;Literature;Maps;
Keywords=FaithLife;Bible;Christianity;Jesus;
- type: inline
dest-filename: verbum.desktop
contents: |
[Desktop Entry]
Name=Verbum Bible
GenericName=Verbum
Comment=Runs Faithlife Bible Software via Wine and Flatpak. Community supported.
Exec=/app/bin/entrypoint.product.sh Verbum
Icon=/app/share/icons/hicolor/512x512/apps/verbum.png
Terminal=false
Type=Application
StartupWMClass=verbum.exe
Categories=Education;Spirituality;Languages;Literature;Maps;
Keywords=FaithLife;Bible;Christianity;Catholic;Jesus;
- type: inline
dest-filename: appdata.xml
contents: |
<?xml version="1.0" encoding="UTF-8"?>
<component type="console-application">
<id>io.github.FaithlifeCommunity.OuDedetai</id>
<name>Ou Dedetai</name>
<summary>Installer for Logos/Verbium from FaithLife</summary>
<metadata_license>MIT</metadata_license>
<project_license>MIT</project_license>
<description>
<p>
An application that helps install and maintain FaithLife's Logos Bible (Verbum) Software on Linux through Wine.
</p>
</description>
<icon type="stock">oudedetai</icon>
<categories>
<category>Education</category>
<category>Spirituality</category>
</categories>
<provides>
<binary>oudedetai</binary>
</provides>
</component>
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --share=network
- --allow=multiarch
- --allow=devel
- --system-talk-name=org.freedesktop.UDisks2
- --system-talk-name=org.freedesktop.NetworkManager
- --env=WINEDLLPATH=/app/dlls/lib32:/app/dlls/lib
- --env=GST_PLUGIN_SYSTEM_PATH=/app/lib32/gstreamer-1.0:/app/lib/gstreamer-1.0:/usr/lib/i386-linux-gnu/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0