43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
id: ch.tigerjython.TigerJython2
|
|
runtime: org.freedesktop.Platform
|
|
# runtime: org.freedesktop.Sdk.Extension.openjdk
|
|
runtime-version: '23.08'
|
|
sdk: org.freedesktop.Sdk
|
|
sdk-extensions:
|
|
- org.freedesktop.Sdk.Extension.openjdk
|
|
modules:
|
|
- name: openjdk
|
|
buildsystem: simple
|
|
build-commands:
|
|
- /usr/lib/sdk/openjdk/install.sh
|
|
- name: tigerjython2
|
|
buildsystem: simple
|
|
build-commands:
|
|
- install -Ddm755 /app/tigerjython/Lib
|
|
- install -Ddm755 /app/tigerjython/TestSamples
|
|
- sed -i "s|/usr/bin/java|/app/jre/bin/java|g" tigerjython
|
|
- sed -i "s|/opt/tigerjython|/app/tigerjython|g" tigerjython
|
|
- install -Dm644 Lib/* /app/tigerjython/Lib
|
|
- install -Dm644 TestSamples/* /app/tigerjython/TestSamples
|
|
- install -m755 tigerjython2.jar /app/tigerjython/tigerjython2.jar
|
|
- install -m755 tigerjython /app/tigerjython/tigerjython.sh
|
|
|
|
sources:
|
|
- type: archive
|
|
path: TigerJython.tar.gz
|
|
finish-args:
|
|
- --env=PATH=/app/jre/bin:/usr/bin
|
|
# X11 + XShm access
|
|
- --share=ipc
|
|
- --socket=fallback-x11
|
|
# Wayland access
|
|
- --socket=wayland
|
|
# GPU acceleration if needed
|
|
- --device=dri
|
|
# Needs to talk to the network:
|
|
- --share=network
|
|
# Needs to save files locally
|
|
- --filesystem=xdg-documents
|
|
# command: java -jar tigerjython2.jar
|
|
# command: java --version
|
|
command: /app/tigerjython/tigerjython.sh
|