2024-01-12 11:06:59 +01:00
|
|
|
id: ch.tigerjython.TigerJython2
|
2024-01-14 14:38:32 +01:00
|
|
|
branch: '2.39'
|
2024-01-12 11:06:59 +01:00
|
|
|
runtime: org.freedesktop.Platform
|
|
|
|
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
|
2024-01-14 14:38:32 +01:00
|
|
|
- install -m755 tigerjython /app/tigerjython/tigerjython
|
2024-01-12 11:06:59 +01:00
|
|
|
|
|
|
|
sources:
|
|
|
|
- type: archive
|
2024-01-14 14:38:32 +01:00
|
|
|
url: https://git.jdmweb2.ch/beat/tigerjython_pkg/raw/tag/V2.39/TigerJython.tar.gz
|
|
|
|
sha256: 5961b11112ad27d4831d47d3422baa41d1ba8059e8dde3db2e4c4a8759aad607
|
2024-01-12 11:06:59 +01:00
|
|
|
finish-args:
|
2024-01-14 14:38:32 +01:00
|
|
|
- --env=PATH=/app/tigerjython:/app/jre/bin:/usr/bin
|
2024-01-12 11:06:59 +01:00
|
|
|
# X11 + XShm access
|
|
|
|
- --share=ipc
|
2024-01-14 14:38:32 +01:00
|
|
|
# - --socket=fallback-x11
|
2024-01-12 11:06:59 +01:00
|
|
|
# Wayland access
|
2024-01-14 14:38:32 +01:00
|
|
|
- --socket=x11
|
2024-01-12 11:06:59 +01:00
|
|
|
# GPU acceleration if needed
|
|
|
|
- --device=dri
|
|
|
|
# Needs to talk to the network:
|
|
|
|
- --share=network
|
|
|
|
# Needs to save files locally
|
|
|
|
- --filesystem=xdg-documents
|
2024-01-14 14:38:32 +01:00
|
|
|
|
|
|
|
## Error: Command 'tigerjython' not found
|
|
|
|
# command: tigerjython
|
|
|
|
|
|
|
|
## WARNING: toplevel-command-is-path
|
|
|
|
## https://github.com/flathub-infra/flatpak-builder-lint/issues/23
|
|
|
|
command: /app/tigerjython/tigerjython
|
|
|
|
|