app-id: io.github.Pavle012.Skakavi-krompir runtime: org.freedesktop.Platform runtime-version: '25.08' sdk: org.freedesktop.Sdk command: skakavi-krompir finish-args: - --share=ipc - --socket=x11 - --socket=wayland - --device=dri - --socket=pulseaudio modules: - python3-requirements.json - name: game buildsystem: simple build-commands: # Build the application with Nuitka - python3 -m nuitka --onefile --jobs=2 --python-flag=no_docstrings --include-data-dir=assets=assets --enable-plugin=tk-inter --static-libpython=yes --assume-yes-for-downloads main.py - mkdir -p /app/bin /app/share/icons/hicolor/256x256/apps /app/share/applications /app/share/metainfo - install -m 755 -D main.bin /app/bin/skakavi-krompir # Resize the icon dynamically using Pillow (which was installed via python3-requirements.json) - python3 -c "from PIL import Image; Image.open('assets/potato.png').resize((256, 256)).save('potato-256.png')" # Install required Flathub metadata: Icon, Desktop, and Metainfo - install -D -m 644 potato-256.png /app/share/icons/hicolor/256x256/apps/io.github.Pavle012.Skakavi-krompir.png - install -D -m 644 io.github.Pavle012.Skakavi-krompir.desktop /app/share/applications/io.github.Pavle012.Skakavi-krompir.desktop - install -D -m 644 io.github.Pavle012.Skakavi-krompir.metainfo.xml /app/share/metainfo/io.github.Pavle012.Skakavi-krompir.metainfo.xml sources: - type: archive url: https://github.com/Pavle012/Skakavi-krompir/archive/refs/tags/v1.0.0.tar.gz sha256: 0000000000000000000000000000000000000000000000000000000000000000 x-checker-data: type: git url: https://github.com/Pavle012/Skakavi-krompir.git tag-pattern: ^v([\d.]+)$ - type: file path: io.github.Pavle012.Skakavi-krompir.metainfo.xml - type: file path: io.github.Pavle012.Skakavi-krompir.desktop