#115 Flatpak packaging for Bazzite/SteamOS#148
Conversation
Co-authored-by: jamesmarkchan <6020424+jamesmarkchan@users.noreply.github.com>
|
@copilot please try and resolve the build error that was encountered: |
Co-authored-by: jamesmarkchan <6020424+jamesmarkchan@users.noreply.github.com>
Fixed in commit The Flatpak bundle itself built successfully — the failure was only in the cleanup step. |
|
@copilot the uploaded flatpack from your workflow indicated this error when it was installed: Is this something we should improve in the flatpack or is there something i need to do differently to install? I have installed flatpak 1.14.6 on Ubuntu 24.04.4 LTS |
…hed from Flathub Co-authored-by: jamesmarkchan <6020424+jamesmarkchan@users.noreply.github.com>
... This is expected Flatpak behavior — a Fixed in commit After the next CI run, the new bundle should install without that error on any system that has Flathub configured. For Ubuntu where Flathub may not be pre-configured, you can add it first with: flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo |
|
@copilot look at feedback from @JasmineRRod above and advise. |
Co-authored-by: jamesmarkchan <6020424+jamesmarkchan@users.noreply.github.com>
The error @JasmineRRod hit is caused by using the wrong install command. flatpak install --user ./jdiskmark-0.7.0.flatpakFixed in commit |
|
@copilot is this expected behavior?
|
…ALL.md Co-authored-by: jamesmarkchan <6020424+jamesmarkchan@users.noreply.github.com>
Yes, that 403 is caused by the Fixed in commit
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user flathub org.freedesktop.Platform//24.08
flatpak install --user ./jdiskmark-0.7.0.flatpak |
…rectory and additional builder arguments.
There was a problem hiding this comment.
Pull request overview
Adds Flatpak packaging and CI automation to build a distributable .flatpak bundle for JDiskMark, targeting gaming-focused Linux distros (e.g., Bazzite/SteamOS).
Changes:
- Introduces a Flatpak manifest, launcher, desktop entry, AppStream metadata, install docs, and icons under
pkg/flatpak/. - Adds an Ant
create-flatpaktarget to build a local Flatpak repo and export a single-file bundle. - Adds a GitHub Actions workflow to build and upload the Flatpak bundle artifact; updates
.gitignorefor Flatpak build outputs.
Reviewed changes
Copilot reviewed 7 out of 10 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
pkg/flatpak/net.jdiskmark.JDiskMark.yml |
Flatpak manifest defining runtime/SDK, permissions, and packaging steps. |
pkg/flatpak/jdiskmark.sh |
Wrapper script used as the Flatpak command entrypoint. |
pkg/flatpak/net.jdiskmark.JDiskMark.desktop |
XDG desktop entry for app launch integration. |
pkg/flatpak/net.jdiskmark.JDiskMark.metainfo.xml |
AppStream metadata for software centers. |
pkg/flatpak/INSTALL.md |
User install instructions for the generated .flatpak bundle. |
pkg/flatpak/net.jdiskmark.JDiskMark.png |
128×128 icon asset for the Flatpak. |
pkg/flatpak/net.jdiskmark.JDiskMark.64x64.png |
64×64 icon asset for the Flatpak. |
build.xml |
Adds create-flatpak Ant target and Flatpak-related properties. |
.github/workflows/flatpak-build.yml |
CI workflow to build and upload the Flatpak bundle artifact. |
.gitignore |
Ignores Flatpak build/repo artifacts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…K 25 Co-authored-by: jamesmarkchan <6020424+jamesmarkchan@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
@copilot the last build created a |
Co-authored-by: jamesmarkchan <6020424+jamesmarkchan@users.noreply.github.com>
Done in commit |
|
flatpak build appears to be working, here is test record: |



pkg/flatpak/directory with Flatpak manifest (net.jdiskmark.JDiskMark.yml)net.jdiskmark.JDiskMark.metainfo.xml)net.jdiskmark.JDiskMark.desktop)jdiskmark.sh)create-flatpakant target tobuild.xml.github/workflows/flatpak-build.yml)<delete>withrm -rffor cleanup offlatpak-build/andflatpak-repo/directories (flatpak-builder creates special files likevar/run/adduserthat Ant cannot delete)--runtime-repofromflatpak build-bundle(thedl.flathub.orgCDN returns HTTP 403 when Flatpak tries to auto-fetch the runtime); users must installorg.freedesktop.Platform//25.08from Flathub explicitly before installing the bundleINSTALL.mdto consistently useorg.freedesktop.Platform//25.08+org.freedesktop.Sdk.Extension.openjdk25//25.08; removed-Djavac.source=21/-Djavac.target=21override so the bundle is built with native JDK 25 bytecodeINSTALL.mdto the CI artifact (alongside the.flatpakbundle) documenting the correct three-step install process: add Flathub remote, install the required runtime (org.freedesktop.Platform//25.08), then runflatpak install --user ./jdiskmark<version>.flatpak— and noting thatflatpak install --frommust not be used with.flatpakbundlesjdiskmark-flatpak-<version>.zip(e.g.jdiskmark-flatpak-0.7.0.zip); version is read dynamically frombuild.xmlso it tracks future releases automaticallyOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.