tigerjython_pkg/flatpak/ch.tigerjython.TigerJython2.yml

50 lines
1.6 KiB
YAML
Raw Normal View History

id: ch.tigerjython.TigerJython2
2024-01-14 14:38:32 +01:00
branch: '2.39'
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
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
finish-args:
2024-01-14 14:38:32 +01:00
- --env=PATH=/app/tigerjython:/app/jre/bin:/usr/bin
# X11 + XShm access
- --share=ipc
2024-01-14 14:38:32 +01:00
# - --socket=fallback-x11
# Wayland access
2024-01-14 14:38:32 +01:00
- --socket=x11
# 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