Setup for Flatpak
* metainfo.xml * BSD-3-Clause
This commit is contained in:
parent
e810d11224
commit
5f00590487
8 changed files with 70 additions and 35 deletions
7
LICENCE
Normal file
7
LICENCE
Normal file
|
@ -0,0 +1,7 @@
|
|||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2
Makefile
2
Makefile
|
@ -8,3 +8,5 @@ tar.gz: man
|
|||
tar -czf TigerJython.tar.gz TigerJython
|
||||
deb: tar.gz
|
||||
cd debian-deb && sh makedeb.sh
|
||||
b2sum:
|
||||
b2sum TigerJython.tar.gz
|
||||
|
|
Binary file not shown.
31
TigerJython/ch.tigerjython.TigerJython2.metainfo.xml
Normal file
31
TigerJython/ch.tigerjython.TigerJython2.metainfo.xml
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>ch.tigerjython.TigerJython2</id>
|
||||
|
||||
<name>TigerJython</name>
|
||||
<summary>TigerJython IDE</summary>
|
||||
<developer_name>TJ Group</developer_name>
|
||||
|
||||
<metadata_license>FSFAP</metadata_license>
|
||||
<project_license>BSD-3-Clause</project_license>
|
||||
|
||||
<recommends>
|
||||
<display_length compare="ge">482</display_length>
|
||||
</recommends>
|
||||
|
||||
<description>
|
||||
<p>
|
||||
TigerJython is a free development environment for the Python programming language. If you want to learn programming, this is the tool for you. It already includes everything you need to start programming right away.
|
||||
</p>
|
||||
<p>
|
||||
For all versions we guarantee not to change or spy your software.
|
||||
</p>
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">tigerjython.desktop</launchable>
|
||||
<content_rating type="oars-1.1"/>
|
||||
<releases>
|
||||
<release version="3.39" date="2024-01-03"/>
|
||||
</releases>
|
||||
<url type="homepage">https://www.tigerjython.ch/</url>
|
||||
</component>
|
3
TigerJython/tigerjython.desktop
Normal file → Executable file
3
TigerJython/tigerjython.desktop
Normal file → Executable file
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Name=TigerJython IDE
|
||||
Exec=java -jar /opt/tigerjython/tigerjython2.jar
|
||||
Exec=tigerjython %f
|
||||
Icon=tigerjython
|
||||
Type=Application
|
||||
Categories=Education;Science;Math;
|
||||
|
|
2
arch-pkg
2
arch-pkg
|
@ -1 +1 @@
|
|||
Subproject commit 7d08674c084d76e22b0b4d5fd647d46d40390ef7
|
||||
Subproject commit 27805c21d5beca3c79b3240ae1ab7403a98ec7ca
|
|
@ -1,7 +1,9 @@
|
|||
manifest = ch.tigerjython.TigerJython2.yml
|
||||
gpg = beat@git.jdmweb2.ch
|
||||
build:
|
||||
clean:
|
||||
flatpak uninstall --noninteractive ch.tigerjython.TigerJython2 > /dev/null || true
|
||||
|
||||
build: clean
|
||||
flatpak-builder --install --user --force-clean build-dir ch.tigerjython.TigerJython2.yml
|
||||
run:
|
||||
flatpak run --nosocket=fallback-x11 --socket=x11 ch.tigerjython.TigerJython2
|
||||
|
@ -9,10 +11,12 @@ sh:
|
|||
flatpak run --command=sh ch.tigerjython.TigerJython2
|
||||
|
||||
#https://docs.flathub.org/docs/for-app-authors/submission/
|
||||
sub_build:
|
||||
sub_build: clean
|
||||
# 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}
|
||||
sub_metainfo:
|
||||
flatpak run --command=appstream-util org.flatpak.Builder validate ch.tigerjython.TigerJython2.metainfo.xml
|
||||
|
|
|
@ -1,33 +1,11 @@
|
|||
id: ch.tigerjython.TigerJython2
|
||||
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
|
||||
- install -m755 tigerjython /app/tigerjython/tigerjython
|
||||
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://git.jdmweb2.ch/beat/tigerjython_pkg/raw/tag/V2.39/TigerJython.tar.gz
|
||||
sha256: 5961b11112ad27d4831d47d3422baa41d1ba8059e8dde3db2e4c4a8759aad607
|
||||
finish-args:
|
||||
- --env=PATH=/app/tigerjython:/app/jre/bin:/usr/bin
|
||||
- --env=PATH=/app/jre/bin:/app/bin:/usr/bin
|
||||
# X11 + XShm access
|
||||
- --share=ipc
|
||||
# - --socket=fallback-x11
|
||||
|
@ -39,11 +17,23 @@ finish-args:
|
|||
- --share=network
|
||||
# Needs to save files locally
|
||||
- --filesystem=xdg-documents
|
||||
|
||||
## 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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue