First commit for flathub
This commit is contained in:
parent
4fb79c050e
commit
e810d11224
2 changed files with 27 additions and 9 deletions
|
@ -1,6 +1,18 @@
|
||||||
|
manifest = ch.tigerjython.TigerJython2.yml
|
||||||
|
gpg = beat@git.jdmweb2.ch
|
||||||
build:
|
build:
|
||||||
|
flatpak uninstall --noninteractive ch.tigerjython.TigerJython2 > /dev/null || true
|
||||||
flatpak-builder --install --user --force-clean build-dir ch.tigerjython.TigerJython2.yml
|
flatpak-builder --install --user --force-clean build-dir ch.tigerjython.TigerJython2.yml
|
||||||
run:
|
run:
|
||||||
flatpak run --nosocket=fallback-x11 --socket=x11 ch.tigerjython.TigerJython2
|
flatpak run --nosocket=fallback-x11 --socket=x11 ch.tigerjython.TigerJython2
|
||||||
sh:
|
sh:
|
||||||
flatpak run --command=sh ch.tigerjython.TigerJython2
|
flatpak run --command=sh ch.tigerjython.TigerJython2
|
||||||
|
|
||||||
|
#https://docs.flathub.org/docs/for-app-authors/submission/
|
||||||
|
sub_build:
|
||||||
|
# flatpak run org.flatpak.Builder --force-clean --sandbox --user --install --install-deps-from=flathub --ccache --mirror-screenshots-url=https://dl.flathub.org/repo/screenshots --repo=repo builddir ch.tigerjython.TigerJython2.yml
|
||||||
|
# flatpak run org.flatpak.Builder --force-clean --sandbox --user --install --ccache --mirror-screenshots-url=https://dl.flathub.org/repo/screenshots --repo=repo builddir ch.tigerjython.TigerJython2.yml
|
||||||
|
# flatpak --user install -y --noninteractive flathub org.freedesktop.Sdk/x86_64/23.08
|
||||||
|
flatpak-builder --gpg-sign=beat@git.jdmweb2.ch --force-clean --sandbox --user --install --install-deps-from=flathub --ccache --mirror-screenshots-url=https://dl.flathub.org/repo/screenshots --repo=repo builddir ${manifest}
|
||||||
|
sub_lint:
|
||||||
|
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest ${manifest}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
id: ch.tigerjython.TigerJython2
|
id: ch.tigerjython.TigerJython2
|
||||||
|
branch: '2.39'
|
||||||
runtime: org.freedesktop.Platform
|
runtime: org.freedesktop.Platform
|
||||||
# runtime: org.freedesktop.Sdk.Extension.openjdk
|
|
||||||
runtime-version: '23.08'
|
runtime-version: '23.08'
|
||||||
sdk: org.freedesktop.Sdk
|
sdk: org.freedesktop.Sdk
|
||||||
sdk-extensions:
|
sdk-extensions:
|
||||||
|
@ -20,24 +20,30 @@ modules:
|
||||||
- install -Dm644 Lib/* /app/tigerjython/Lib
|
- install -Dm644 Lib/* /app/tigerjython/Lib
|
||||||
- install -Dm644 TestSamples/* /app/tigerjython/TestSamples
|
- install -Dm644 TestSamples/* /app/tigerjython/TestSamples
|
||||||
- install -m755 tigerjython2.jar /app/tigerjython/tigerjython2.jar
|
- install -m755 tigerjython2.jar /app/tigerjython/tigerjython2.jar
|
||||||
- install -m755 tigerjython /app/tigerjython/tigerjython.sh
|
- install -m755 tigerjython /app/tigerjython/tigerjython
|
||||||
|
|
||||||
sources:
|
sources:
|
||||||
- type: archive
|
- type: archive
|
||||||
path: TigerJython.tar.gz
|
url: https://git.jdmweb2.ch/beat/tigerjython_pkg/raw/tag/V2.39/TigerJython.tar.gz
|
||||||
|
sha256: 5961b11112ad27d4831d47d3422baa41d1ba8059e8dde3db2e4c4a8759aad607
|
||||||
finish-args:
|
finish-args:
|
||||||
- --env=PATH=/app/jre/bin:/usr/bin
|
- --env=PATH=/app/tigerjython:/app/jre/bin:/usr/bin
|
||||||
# X11 + XShm access
|
# X11 + XShm access
|
||||||
- --share=ipc
|
- --share=ipc
|
||||||
- --socket=fallback-x11
|
# - --socket=fallback-x11
|
||||||
# Wayland access
|
# Wayland access
|
||||||
- --socket=wayland
|
- --socket=x11
|
||||||
# GPU acceleration if needed
|
# GPU acceleration if needed
|
||||||
- --device=dri
|
- --device=dri
|
||||||
# Needs to talk to the network:
|
# Needs to talk to the network:
|
||||||
- --share=network
|
- --share=network
|
||||||
# Needs to save files locally
|
# Needs to save files locally
|
||||||
- --filesystem=xdg-documents
|
- --filesystem=xdg-documents
|
||||||
# command: java -jar tigerjython2.jar
|
|
||||||
# command: java --version
|
## Error: Command 'tigerjython' not found
|
||||||
command: /app/tigerjython/tigerjython.sh
|
# command: tigerjython
|
||||||
|
|
||||||
|
## WARNING: toplevel-command-is-path
|
||||||
|
## https://github.com/flathub-infra/flatpak-builder-lint/issues/23
|
||||||
|
command: /app/tigerjython/tigerjython
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue