tigerjython_pkg/flatpak/ch.tigerjython.TigerJython2.yml
Beat Jäckle 5f00590487 Setup for Flatpak
* metainfo.xml
 * BSD-3-Clause
2024-01-15 17:40:31 +01:00

39 lines
1.4 KiB
YAML

id: ch.tigerjython.TigerJython2
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk
finish-args:
- --env=PATH=/app/jre/bin:/app/bin:/usr/bin
# X11 + XShm access
- --share=ipc
# - --socket=fallback-x11
# Wayland access
- --socket=x11
# GPU acceleration if needed
- --device=dri
# Needs to talk to the network:
- --share=network
# Needs to save files locally
- --filesystem=xdg-documents
command: tigerjython
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk/install.sh
- name: tigerjython2
buildsystem: simple
build-commands:
- sed -i "s|/usr/bin/java|/app/jre/bin/java|g" tigerjython
- sed -i "s|/opt/tigerjython|/app/tigerjython|g" tigerjython
- install -Dm644 Lib/* -t /app/tigerjython/Lib
- install -Dm644 TestSamples/* -t /app/tigerjython/TestSamples
- install -m755 tigerjython2.jar /app/tigerjython/tigerjython2.jar
- install -Dm755 tigerjython -t /app/bin
- desktop-file-edit --set-icon=ch.tigerjython.TigerJython2 --set-key=Exec --set-value="tigerjython %f" tigerjython.desktop
sources:
- type: archive
url: https://git.jdmweb2.ch/beat/tigerjython_pkg/raw/tag/V2.39/TigerJython.tar.gz
sha256: 5961b11112ad27d4831d47d3422baa41d1ba8059e8dde3db2e4c4a8759aad607