From 4c4a0b47b1f9fef4a87a3d1dbd0f969a22a0c543 Mon Sep 17 00:00:00 2001
From: Nico Alt <nicoalt@posteo.org>
Date: Fri, 18 Oct 2019 19:46:28 +0200
Subject: [PATCH] Add script to release new version of Briar Headless

For this to work, you have to put this project (GTK) and Android's
project into one directory and call the Android's folder
"briar-android".
---
 tools/release-briar-headless.sh | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100755 tools/release-briar-headless.sh

diff --git a/tools/release-briar-headless.sh b/tools/release-briar-headless.sh
new file mode 100755
index 0000000..650ec7a
--- /dev/null
+++ b/tools/release-briar-headless.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+# Copyright (c) 2019 Nico Alt
+# SPDX-License-Identifier: AGPL-3.0-only
+# License-Filename: LICENSE.md
+
+set -e -x
+
+cd ../briar-android
+
+./gradlew --configure-on-demand briar-headless:jar
+
+cd briar-headless/build/libs
+
+sha256sum briar-headless.jar > sha256sum.txt
+git log | head -n 1 > commit.txt
+
+echo "To sign, call 'for file in \$(ls); do gpg -b \"\$file\"; done'"
+
+xdg-open .
-- 
GitLab