Skip to content
Snippets Groups Projects
Commit ebc7566d authored by Arnaud Ferraris's avatar Arnaud Ferraris Committed by Peter Senna Tschudin
Browse files

flatpak: change sections organizations


The "Publishing a single application" section introduces the use of
.flatpakrepo files, which are detailed in the subsequent "Publishing a
repository" section. Moving the latter section before the former
therefore makes more sense.

Signed-off-by: default avatarArnaud Ferraris <arnaud.ferraris@collabora.com>
parent dcd52c18
No related branches found
No related tags found
1 merge request!218flatpak: add more details and example commands
Pipeline #247351 passed
...@@ -61,6 +61,29 @@ More details about those commands are available in the ...@@ -61,6 +61,29 @@ More details about those commands are available in the
# Publishing signed flatpaks applications # Publishing signed flatpaks applications
## Publishing a repository
When distributing several applications, it can be useful to publish the whole
repository using a [.flatpakrepo](https://docs.flatpak.org/en/latest/hosting-a-repository.html#flatpakrepo-files)
file.
The only difference here is that the `GPGKey=...` line must be replaced with
`SignatureKey=<PUBLICKEY>`, where `<PUBLICKEY>` is the base64-encoded public
Ed25519 key.
Such a .flatpakrepo file could be:
```
[Flatpak Repo]
Title=Sample Repository
Url=https://example.org/flatpak/repo
Homepage=https://example.org/flatpak
Comment=Sample Flatpak repository signed with Ed25519
Description=This Flatpak repository provides applications signed with Ed25519
Icon=https://example.org/flatpak/icon.svg
SignatureKey=B3a86SmB+sby/N5onaxTXjK1OEAbZOI2fsdr3kKD+KE=
```
## Publishing a single application ## Publishing a single application
One convenient way to distribute single flatpak applications is to use One convenient way to distribute single flatpak applications is to use
...@@ -68,9 +91,9 @@ One convenient way to distribute single flatpak applications is to use ...@@ -68,9 +91,9 @@ One convenient way to distribute single flatpak applications is to use
files. Those files include all necessary information for flatpak to be able to files. Those files include all necessary information for flatpak to be able to
install and update the application. install and update the application.
The only difference here is that the `GPGKey=...` line must be replaced with Exactly as it is done with with `.flatpakrepo` files, using
`SignatureKey=<PUBLICKEY>`, where `<PUBLICKEY>` is the base64-encoded public `SignatureKey=<PUBLICKEY>` instead of `GPGKey=...` will instruct flatpak to
Ed25519 key. enable Ed25519 signature verification for this repository.
This line will instruct flatpak to add the corresponding configuration keys to This line will instruct flatpak to add the corresponding configuration keys to
the remote and perform signature verification when installing and/or updating the remote and perform signature verification when installing and/or updating
...@@ -88,29 +111,6 @@ IsRuntime=false ...@@ -88,29 +111,6 @@ IsRuntime=false
SignatureKey=B3a86SmB+sby/N5onaxTXjK1OEAbZOI2fsdr3kKD+KE= SignatureKey=B3a86SmB+sby/N5onaxTXjK1OEAbZOI2fsdr3kKD+KE=
``` ```
## Publishing a repository
When distributing several applications, it can be useful to publish the whole
repository using a [.flatpakrepo](https://docs.flatpak.org/en/latest/hosting-a-repository.html#flatpakrepo-files)
file.
Exactly as it is done with with `.flatpakref` files, using
`SignatureKey=<PUBLICKEY>` instead of `GPGKey=...` will instruct flatpak to
enable Ed25519 signature verification for this repository.
Such a .flatpakrepo file could be:
```
[Flatpak Repo]
Title=Sample Repo
Url=https://example.org/flatpak/repo
Homepage=https://example.org/flatpak
Comment=Sample Flatpak repository signed with Ed25519
Description=This Flatpak repository provides applications signed with Ed25519
Icon=https://example.org/flatpak/icon.svg
SignatureKey=B3a86SmB+sby/N5onaxTXjK1OEAbZOI2fsdr3kKD+KE=
```
## Publishing a bundle ## Publishing a bundle
Flatpak applications can also be distributed as Flatpak applications can also be distributed as
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment