Add README.md

parent 0caac08b
This is an example of packaging of Firefox for both Flatpak and
Snappy. This is not intended to be used but to show how to build
an application to run both on Flatpak and Snappy.
Please see [this blog
post](https://valentindavid.com/posts/2019-03-27-freedesktop-sdk-snap/)
for more information.
### Dependencies
First install BuildStream 1.2 and bst-external:
```
pip3 install --user git+https://gitlab.com/BuildStream/buildstream.git@bst-1.2
pip3 install --user git+https://gitlab.com/BuildStream/bst-external.git@master
```
There are alternative ways to install it, see the [documentation](https://buildstream.build/install.html).
Then build the `valentindavid/snap` branch of Freedesktop SDK and install it:
```
git clone https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git freedesktop-sdk-snap --branch valentindavid/snap
cd freedesktop-sdk-snap
make export-snap
snap install --dangerous snap/platform.snap
```
### Building the application
```
git clone https://gitlab.com/valentindavid/firefox-buildstream.git
cd firefox-buildstream
bst build firefox.bst
```
### Testing the application
```
bst shell firefox.bst -- firefox --new-instance
```
### Building and installing the snap
```
bst build snap/image.bst
bst checkout snap/image.bst snap/
snap install --dangerous snap/firefox.snap
/snap/bin/firefox --new-instance
```
### Building and installing the flatpak
```
bst build flatpak/repo.bst
bst checkout flatpak/repo.bst repo/
flatpak remote-add --no-gpg-verify local-firefox repo/
flatpak install local-firefox org.mozilla.Firefox
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment