diff --git a/.gitignore b/.gitignore index 9cb596a95c14a6040b3ce74558351069e41b8151..7a7e68fef764ea4e94d9454a82b07535a302cc22 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,2 @@ -builddir .coverage -.flatpak-builder __pycache__ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 84383003b0d27fd92f70c0a4ccbb37fe1fa1572f..c4fd66bf823ea7b394b22780b237b2976497e298 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,7 +5,7 @@ image: debian:buster 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 stages: diff --git a/README.md b/README.md index 70d5e58a0ac5a796edfa8e55892a194d302e3711..215076d723601ed2d9dd623d8d7cd5b1a12c235f 100644 --- a/README.md +++ b/README.md @@ -1,51 +1,17 @@ -# Briar GTK +# Briar Wrapper -[](https://code.briarproject.org/NicoAlt/briar-gtk/commits/master) -[](https://code.briarproject.org/NicoAlt/briar-gtk/commits/master) +[](https://code.briarproject.org/briar/python-briar-wrapper/commits/master) +[](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 simple GTK app for [Briar](https://briar.app), built with Python and GNOME Builder. +A wrapper library for Briar to run on Python platforms. It uses the [Briar REST API](https://code.briarproject.org/briar/briar/blob/master/briar-headless/README.md) 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 -* Intuitive UI, similar to Briar Android client * 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 -* 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 diff --git a/meson.build b/meson.build index 4732c356a517e57ed4ccd110bd358654440240c6..e8f8a28d334511f899b5ec7cd425da3ce66ecf25 100644 --- a/meson.build +++ b/meson.build @@ -3,15 +3,9 @@ # License-Filename: LICENSE.md project( - 'briar-gtk', + 'briar-wrapper', version: '0.1.0', meson_version: '>= 0.50.0', ) -i18n = import('i18n') - -subdir('data') subdir('src') -subdir('po') - -meson.add_install_script('src/meson_post_install.py') diff --git a/src/meson.build b/src/meson.build index 744ca3a0236e976cdf711468ad421acee51b62b8..a85b92f19ca0861f2e8e1f6350799fa54de3c4ce 100644 --- a/src/meson.build +++ b/src/meson.build @@ -10,16 +10,6 @@ python3 = import('python3') conf = configuration_data() conf.set('PYTHON', python3.find_python().path()) 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) -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/gtk', install_dir: MODULE_DIR)