This directory contains Flatpak manifest files for publishing ColorSmith on Flathub.
- com.ktechpit.colorsmith.json - JSON format manifest (recommended for Flathub)
- com.ktechpit.colorsmith.yml - YAML format manifest (alternative)
- flatpak-build.sh - Helper script to build and test the Flatpak locally
sudo apt install flatpak flatpak-builder
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.kde.Platform//6.10 org.kde.Sdk//6.10Before building, update the commit hash in the manifest:
-
Create a git tag:
git tag -a v1.0.0 -m "Release 1.0.0" git push origin v1.0.0 -
Get the commit hash:
git rev-parse v1.0.0
-
Replace
PUT_YOUR_COMMIT_HASH_HEREin the manifest with the actual hash.
Using the helper script:
./flatpak-build.sh testOr manually:
flatpak-builder --user --install --force-clean build-dir com.ktechpit.colorsmith.json
flatpak run com.ktechpit.colorsmithThe manifest uses:
- Runtime: org.kde.Platform 6.10
- SDK: org.kde.Sdk 6.10
- Build System: cmake-ninja
The app requires these permissions:
- X11/Wayland: For GUI display
- Session Bus: For DBus communication
- Portal Access: For screen color picking via xdg-desktop-portal
- Documents Access: For saving/loading color palettes
See the detailed guide in docs/FLATPAK.md.
Quick overview:
- Test the build locally
- Fork/create repository at
github.com/flathub/com.ktechpit.colorsmith - Push the manifest file
- Submit to Flathub following their guidelines
- Ensure KDE runtime 6.10 is installed
- Check that the commit hash is correct
- Verify all source files are accessible
- Check permissions in
finish-args - Test with
flatpak run --verbose com.ktechpit.colorsmith
- Ensure portal permissions are granted
- Check if xdg-desktop-portal is running on your system