RESOLVED
For anyone who sees this post in the future, I’ll recap what I did to compile the .flatpak file.
I created a manifest file in the directory where the binaries related to my program were located which I called org.tarro.lamiavideoteca.yml, inside this file I wrote:
id: org.tarro.lamiavideoteca
runtime: org.kde.Platform
runtime-version: '6.6'
sdk: org.kde.Sdk
command: LaMiaVideoteca
modules:
- name: LaMiaVideoteca
buildsystem: simple
sources:
- type: file
path: LaMiaVideoteca
- type: file
path: BluRay4KUHD
- type: file
path: BluRayDisc
- type: file
path: 'BluRayHD&UHD'
- type: file
path: 'DVD&BluRayDisc'
- type: file
path: DVDVideo
- type: file
path: LaMiaVideoteca.ico
- type: file
path: rimuoviimmagine.png
- type: file
path: VHS
- type: file
path: lamiavideoteca.db
- type: dir
path: /home/enrico/MEGA/Informatica/Programmazione/C/Qt Creator/Linux/LaMiaVideoteca/Setup/Release 2.45/FLATPAK/lamiavideoteca
build-commands:
- mkdir /app/lib
- mkdir /app/share
- mkdir /app/bin
- mkdir /app/bin/Copertine
- install -D LaMiaVideoteca /app/bin/LaMiaVideoteca
- install -T BluRay4KUHD /app/bin/BluRay4KUHD
- install -T BluRayDisc /app/bin/BluRayDisc
- install -T 'BluRayHD&UHD' /app/bin/'BluRayHD&UHD'
- install -T 'DVD&BluRayDisc' /app/bin/'DVD&BluRayDisc'
- install -T DVDVideo /app/bin/DVDVideo
- install -T LaMiaVideoteca.ico /app/bin/LaMiaVideoteca.ico
- install -T rimuoviimmagine.png /app/bin/rimuoviimmagine.png
- install -T VHS /app/bin/VHS
- install -T lamiavideoteca.db /app/bin/lamiavideoteca.db
- cp -r lib/* /app/lib
- cp -r share/* /app/share
- cp -r Copertine/* /app/bin/Copertine
finish-args:
# X11 + XShm access
- --share=ipc
- --socket=x11
- --socket=fallback-x11
# Wayland access
- --socket=wayland
# GPU acceleration if needed
- --device=dri
# Needs to save files locally
- --filesystem=host
Still inside this directory I opened in terminal and issued these three commands:
flatpak-builder build-dir org.tarro.lamiavideoteca.yml
flatpak build-export lamiavideotecarepo build-dir stable
(this command creates a folder which is nothing other than the local repository)
flatpak build-bundle lamiavideotecarepo lamiavideoteca.flatpak org.tarro.lamiavideoteca stable
(this command actually creates the .flatpak file)
I hope the post can help someone in the future. Thanks