Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add directions to install Flatpak SDK per #126 #133

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions writing-apps/our-first-app/packaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ modules:
path: .
```

Before we run a test build, we need to install the `io.elementary` Flatpak SDK as a user:

```bash
flatpak install --user io.elementary.Sdk//6
```

To run a test build and install your app, we can use `flatpak-builder` with a few arguments:

```bash
Expand All @@ -60,5 +66,15 @@ flatpak-builder build com.github.yourusername.yourrepositoryname.yml --user --i

This tells Flatpak Builder to build the manifest we just wrote into a clean `build` folder the same as we did for Meson. Plus, we install the built Flatpak package locally for our user. If all goes well, congrats! You've just built and installed your app as a Flatpak.


Don't forget to add `.flatpak-builder` to your `.gitignore` file:

```bash
echo '.flatpak-builder' >> .gitignore
git add .gitignore
git commit -am "Added .flatpak-builder to .gitignore"
git push
```

That wasn't too bad, right? We'll set up more complicated packaging in the future, but this is all that is required to submit your app to AppCenter Dashboard for it to be built, packaged, and distributed. If you'd like you can always read [more about Flatpak](https://docs.flatpak.org/en/latest/introduction.html).