HOWTO: Install Double Commander in distrobox container and auto upgrade

Now I have been looking around and I see someone is working on building flatpak of Double Commander. Currently this flatpak is not published on Flathub, like I understand because you can’t edit system files because flatpacks are constrained to use system files. What I see… for most use cases users working with there user owned files, this is perfectly fine solution.

I have followed instructions from above link how to build flatpak, but got some errors. I don’t know why they complicate things with instructions how to build flatpak. I changed commands to officially default recommended way of building flatpak and it builds just fine with commands bellow on Blufin 42 stable stream:

flatpak install -y org.kde.Platform//6.8 org.kde.Sdk//6.8 org.freedesktop.Sdk.Extension.freepascal//24.08 org.flatpak.Builder
git clone https://github.com/TorrSamaho/io.github.doublecmd.DoubleCommander.git GitDoubleCommander
cd GitDoubleCommander
flatpak run org.flatpak.Builder --force-clean build-dir io.github.doublecmd.DoubleCommander.yml
flatpak run org.flatpak.Builder --user --install --force-clean build-dir io.github.doublecmd.DoubleCommander.yml
flatpak run io.github.doublecmd.DoubleCommander &

I have been playing with flatpak version of Double Commander and it looks like it is working fine, what I have tested so far.