Skip to content
Snippets Groups Projects
Commit e00df90b authored by Nico's avatar Nico
Browse files

Modify remaining Briar GTK code for briar-wrapper

Because the two independent Briar projects briar_repl and Briar GTK
combine forces, the api wrapper part that used to be part of Briar GTK
now becomes a new project on its own: python-briar-wrapper.

With this commit, everything remaining from Briar GTK gets modified to
match python-briar-wrapper's needs.
parent ee42338c
No related branches found
No related tags found
No related merge requests found
Pipeline #3973 passed
builddir
.coverage .coverage
.flatpak-builder
__pycache__ __pycache__
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
image: debian:buster image: debian:buster
before_script: before_script:
- apt update && apt install --no-install-recommends -y gir1.2-gtk-3.0 python3-gi python3-pip python3-setuptools - apt update && apt install --no-install-recommends -y python3-pip python3-setuptools
- pip3 install -r requirements-dev.txt - pip3 install -r requirements-dev.txt
stages: stages:
......
# Briar GTK # Briar Wrapper
[![pipeline status](https://code.briarproject.org/NicoAlt/briar-gtk/badges/master/pipeline.svg)](https://code.briarproject.org/NicoAlt/briar-gtk/commits/master) [![pipeline status](https://code.briarproject.org/briar/python-briar-wrapper/badges/master/pipeline.svg)](https://code.briarproject.org/briar/python-briar-wrapper/commits/master)
[![coverage report](https://code.briarproject.org/NicoAlt/briar-gtk/badges/master/coverage.svg)](https://code.briarproject.org/NicoAlt/briar-gtk/commits/master) [![coverage report](https://code.briarproject.org/briar/python-briar-wrapper/badges/master/coverage.svg)](https://code.briarproject.org/briar/python-briar-wrapper/commits/master)
_Warning: This is still in a very early state and should be considered as prototype._ A wrapper library for Briar to run on Python platforms.
A simple GTK app for [Briar](https://briar.app), built with Python and GNOME Builder.
It uses the It uses the
[Briar REST API](https://code.briarproject.org/briar/briar/blob/master/briar-headless/README.md) [Briar REST API](https://code.briarproject.org/briar/briar/blob/master/briar-headless/README.md)
and therefore requires Java. and therefore requires Java.
## Installation
So far, there is no official installation method and
you have to build it from source.
## Developers
The easiest and most convenient way is to build _briar-gtk_ using
[Builder](https://wiki.gnome.org/Apps/Builder).
In _Builder_, click "Clone Repository" at the bottom and
enter the URL to this Git project.
You can also call this:
```bash
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak-builder builddir --install-deps-from=flathub --user --install --force-clean --ccache app.briar.gtk.json
flatpak run app.briar.gtk
```
Additionally, you are able to run Briar GTK without Flatpak.
For this, you have to install Java, the
[Python dependencies](requirements.txt) and
[Briar headless](https://code.briarproject.org/briar/briar/blob/master/briar-headless/README.md).
Once you've done this, change the path of the Briar headless
jar in [src/briar/gtk/define.py](src/briar/gtk/define.py),
build it with _meson_ and start Briar GTK.
## Design Goals ## Design Goals
* Intuitive UI, similar to Briar Android client
* Main platform is GNU/Linux, but should also support (at least) Windows and macOS * Main platform is GNU/Linux, but should also support (at least) Windows and macOS
* Analogously, main platform is x86, but should also support (at least) arm * Analogously, main platform is x86, but should also support (at least) arm
* Follows [GNOME Human Interface Guidelines](https://developer.gnome.org/hig/stable/)
* Adaptive to different screen sizes (desktop and mobile devices)
* Has [phone constraints](https://developer.puri.sm/Librem5/Apps/Guides/Design/Constraints.html) in mind
* Strictly separates API wrapper from GTK stuff, making former a solid base for other (commandline) clients
## FAQ ## FAQ
......
...@@ -3,15 +3,9 @@ ...@@ -3,15 +3,9 @@
# License-Filename: LICENSE.md # License-Filename: LICENSE.md
project( project(
'briar-gtk', 'briar-wrapper',
version: '0.1.0', version: '0.1.0',
meson_version: '>= 0.50.0', meson_version: '>= 0.50.0',
) )
i18n = import('i18n')
subdir('data')
subdir('src') subdir('src')
subdir('po')
meson.add_install_script('src/meson_post_install.py')
...@@ -10,16 +10,6 @@ python3 = import('python3') ...@@ -10,16 +10,6 @@ python3 = import('python3')
conf = configuration_data() conf = configuration_data()
conf.set('PYTHON', python3.find_python().path()) conf.set('PYTHON', python3.find_python().path())
conf.set('VERSION', meson.project_version()) conf.set('VERSION', meson.project_version())
conf.set('LOCALE_DIR', join_paths(get_option('prefix'), get_option('localedir')))
conf.set('PACKAGE_DATA_DIR', PACKAGE_DATA_DIR) conf.set('PACKAGE_DATA_DIR', PACKAGE_DATA_DIR)
configure_file(
input: 'briar-gtk.in',
output: 'briar-gtk',
configuration: conf,
install: true,
install_dir: get_option('bindir')
)
install_subdir('briar/api', install_dir: MODULE_DIR) install_subdir('briar/api', install_dir: MODULE_DIR)
install_subdir('briar/gtk', install_dir: MODULE_DIR)
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