forked from flathub/org.phoenicis.playonlinux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.phoenicis.playonlinux.yml
73 lines (71 loc) · 2.77 KB
/
org.phoenicis.playonlinux.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
66
67
68
69
70
71
72
73
---
app-id: org.phoenicis.playonlinux
runtime: org.freedesktop.Platform
runtime-version: '18.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk11
add-extensions:
# support 32-bit apps
org.freedesktop.Platform.Compat.i386:
directory: lib/i386-linux-gnu
version: '18.08'
org.freedesktop.Platform.Compat.i386.Debug:
directory: lib/debug/lib/i386-linux-gnu
version: '18.08'
no-autodownload: true
org.freedesktop.Platform.GL32:
directory: lib/i386-linux-gnu/GL
version: '18.08'
subdirectories: true
no-autodownload: true
autodelete: false
add-ld-path: lib
merge-dirs: vulkan/icd.d;glvnd/egl_vendor.d
download-if: active-gl-driver
enable-if: active-gl-driver
command: phoenicis-playonlinux
finish-args:
# restrict filesystem access to .Phoenicis
# and the download and documents directories (for local installers)
- --persist=.Phoenicis
- --filesystem=xdg-download
- --filesystem=xdg-documents
# support 32-bit apps
- --allow=multiarch
- --share=ipc
- --socket=x11
- --share=network
- --device=dri
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk11/install.sh
- name: cabextract
buildsystem: autotools
sources:
- type: archive
url: https://www.cabextract.org.uk/cabextract-1.6.tar.gz
sha256: cee661b56555350d26943c5e127fc75dd290b7f75689d5ebc1f04957c4af55fb
- name: playonlinux
buildsystem: simple
build-commands:
- mkdir -p /app/lib/i386-linux-gnu
- install -Dm644 -t /app/etc phoenicis-flatpak/ld.so.conf
- install -D phoenicis-playonlinux /app/bin/phoenicis-playonlinux
- mkdir -p /app/phoenicis/lib
- cp -r phoenicis-flatpak/lib/* /app/phoenicis/lib
- chmod 755 -R /app/phoenicis
- install -Dm644 phoenicis-flatpak/org.phoenicis.playonlinux.appdata.xml /app/share/appdata/org.phoenicis.playonlinux.appdata.xml
- install -Dm644 phoenicis-flatpak/org.phoenicis.playonlinux.desktop /app/share/applications/org.phoenicis.playonlinux.desktop
- for icon_size in 16 22 24 32 48 64 256; do install -d /app/share/icons/hicolor/${icon_size}x${icon_size}/apps; install -m644 phoenicis-flatpak/phoenicis_${icon_size}.png /app/share/icons/hicolor/${icon_size}x${icon_size}/apps/org.phoenicis.playonlinux.png; done
sources:
- type: archive
url: http://repository.playonlinux.com/PlayOnLinux/5.0-alpha-2/phoenicis-flatpak.zip
sha256: 6e56614654953065fd9a2a92353cd96ae6656a08b289724df1315267aa336577
dest: phoenicis-flatpak
- type: script
dest-filename: phoenicis-playonlinux
commands:
- /app/jre/bin/java --module-path /app/phoenicis/lib/ --add-modules=ALL-MODULE-PATH org.phoenicis.javafx.JavaFXApplication "$@"