Update flatpak README.md

This commit is contained in:
Daniel 2018-04-17 11:23:14 +02:00
parent db8630d28b
commit a32100564c
1 changed files with 58 additions and 22 deletions

View File

@ -1,22 +1,58 @@
Run the following steps from a directory containing the gajim source dir. # Install Gajim via Flatpak
Install gajim flatpak repo **Prerequisites:**
--------------------------
You need to have `flatpak` and `flatpak-builder` installed. For this example, we use `git` for downloading/updating Gajim's sources.
1. `flatpak --user remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo`
1. `flatpak --user install gnome org.gnome.Platform//3.28`
1. `flatpak --user install gnome org.gnome.Sdk//3.28` ### Download Gajim's sources
1. `flatpak-builder --repo=repo directory gajim/org.gajim.Gajim.json`
1. `flatpak --user remote-add --no-gpg-verify repo repo` In this example, we do a `git clone` of the repository, so you need to have `git` installed. Alternatively, you can also download the sources from our Gitlab via webbrowser.
1. `flatpak --user install repo org.gajim.Gajim`
1. `flatpak run org.gajim.Gajim` `git clone https://dev.gajim.org/gajim/gajim.git ~/Gajim`
Update gajim flatpak repo `cd ~/Gajim`
-------------------------
*Note: Source tarballs and snapshots do _not_ include 'org.gajim.Gajim.json', which is necessary for installation via Flatpak.*
1. update your gajim source repository
1. `rm -r directory`
1. `flatpak-builder --repo=repo directory gajim/org.gajim.Gajim.json` ### Install Gajim and dependencies
1. `flatpak --user update`
Replace install path `~/Gajim/gajim_flatpak` with an install path of your choice.
Note: remove `--user` if you want a system-wide installation
*Note: Remove `--user` if you want a system-wide installation.*
1. `flatpak --user remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo`
2. `flatpak --user install gnome org.gnome.Platform//3.28`
3. `flatpak --user install gnome org.gnome.Sdk//3.28`
4. `flatpak-builder --repo=gajim_flatpak_repo ~/Gajim/gajim_flatpak ~/Gajim/org.gajim.Gajim.json`
5. `flatpak --user remote-add --no-gpg-verify gajim_flatpak_repo ~/Gajim/gajim_flatpak_repo`
6. `flatpak --user install gajim_flatpak_repo org.gajim.Gajim`
7. `flatpak run org.gajim.Gajim`
Thats it, you are now running Gajim via Flatpak!
## How to update
### Update Gajim's sources
In this example, we use `git` to update the repository. You can also download the sources from our Gitlab via webbrowser.
`cd ~/Gajim`
`git pull --rebase`
### Remove previous Flatpak directory
`rm -r ~/Gajim/gajim_flatpak`
### Install and update Gajim
1. `flatpak-builder --repo=gajim_flatpak_repo ~/Gajim/gajim_flatpak ~/Gajim/org.gajim.Gajim.json`
2. `flatpak --user update`
3. `flatpak run org.gajim.Gajim`
Gajim is now updated.