Skip to content

builder-main: Commit mirrored media as screenshot ref to exported repo#649

Merged
bbhtt merged 2 commits intoflatpak:mainfrom
bbhtt:bbhtt/commit-sc-ref
Sep 3, 2025
Merged

builder-main: Commit mirrored media as screenshot ref to exported repo#649
bbhtt merged 2 commits intoflatpak:mainfrom
bbhtt:bbhtt/commit-sc-ref

Conversation

@bbhtt
Copy link
Contributor

@bbhtt bbhtt commented Aug 3, 2025

This is needed to store the application icons and the mirrored
screenshots (as done by appstream) to the ostree repo. This can be
useful in many ways, the primary being flat-manager extracts [1] these
screenshot refs and stores them in the server so that application
store frontends can use their own mirrored screenshot and icon URLs.

This has been for the longest time done at various downstream levels
such as in buildbot [2], flatpak-github-actions [3] and vorarbeiter [4]
(the successor to buildbot) but it's more user friendly to have
flatpak-builder do this extra work.

[1]: https://github.com/flatpak/flat-manager/commit/eff43004756c011b0a0d034a61cec84836b8e0a9
[2]: https://github.com/flathub-infra/buildbot/blob/9d8e2b5483b2e446389548446ebf9c3934380682/master/buildbot/flathub_master.py#L1081
[3]: https://github.com/flatpak/flatpak-github-actions/blob/6684584b07d86113b1acfc80b3e4667f16f617c3/flatpak-builder/index.js#L280-L286
[4]: https://github.com/flathub-infra/vorarbeiter/blob/7f2f04a562e73ba4f46044dae7c99f8e9e64a39d/justfile#L185-L189

@bbhtt
Copy link
Contributor Author

bbhtt commented Aug 3, 2025

This is in use in Flathub for the past 1+ month https://github.com/flathub-infra/flatpak-builder/commits/flathub/

@bbhtt
Copy link
Contributor Author

bbhtt commented Aug 3, 2025

rebase over #651

@swick
Copy link
Contributor

swick commented Sep 2, 2025

LGTM with the code style fixed.

@bbhtt
Copy link
Contributor Author

bbhtt commented Sep 2, 2025

rebased to drop the merged commits from the other MRs.

This is needed to store the application icons and the mirrored
screenshots (as done by appstream) to the ostree repo. This can be
useful in many ways, the primary being flat-manager extracts [1] these
screenshot refs and stores them in the server so that application
store frontends can use their own mirrored screenshot and icon URLs.

This has been for the longest time done at various downstream levels
such as in buildbot [2], flatpak-github-actions [3] and vorarbeiter [4]
(the successor to buildbot) but it's more user friendly to have
flatpak-builder do this extra work.

[1]: flatpak/flat-manager@eff4300
[2]: https://github.com/flathub-infra/buildbot/blob/9d8e2b5483b2e446389548446ebf9c3934380682/master/buildbot/flathub_master.py#L1081
[3]: https://github.com/flatpak/flatpak-github-actions/blob/6684584b07d86113b1acfc80b3e4667f16f617c3/flatpak-builder/index.js#L280-L286
[4]: https://github.com/flathub-infra/vorarbeiter/blob/7f2f04a562e73ba4f46044dae7c99f8e9e64a39d/justfile#L185-L189
@swick
Copy link
Contributor

swick commented Sep 2, 2025

LGTM

@bbhtt bbhtt merged commit b5a5f77 into flatpak:main Sep 3, 2025
5 checks passed
@bbhtt bbhtt deleted the bbhtt/commit-sc-ref branch September 3, 2025 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants