summaryrefslogtreecommitdiff
path: root/flatpak
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-18 09:56:31 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-18 09:56:31 +0200
commit14471950f1c5b99ceb86491ac6006a30178f3467 (patch)
treebe4ed35c30bd91328fdf8ee47cfcddb2c1fbd6a8 /flatpak
parent7f8394089fa4903c68f4b2d628f3ab76ceacdd35 (diff)
Also generate a LibreOffice.flatpakref file
Diffstat (limited to 'flatpak')
-rwxr-xr-xflatpak/build.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/flatpak/build.sh b/flatpak/build.sh
index 8b381c2..c1cd891 100755
--- a/flatpak/build.sh
+++ b/flatpak/build.sh
@@ -149,7 +149,7 @@ flatpak build --nofilesystem=host "${my_dir?}"/app appstream-compose \
org.libreoffice.LibreOffice-{base,calc,draw,impress,writer}
-# 6 Generate bundle
+# 6 Generate repository, .flatpak bundle, and .flatpakref file
flatpak build-finish --command=/app/libreoffice/program/soffice \
--share=network --share=ipc --socket=x11 --socket=wayland --socket=pulseaudio \
@@ -178,3 +178,9 @@ flatpak build-bundle \
--gpg-keys="${my_dir?}"/key "${my_dir?}"/repository \
"${my_dir?}"/LibreOffice.flatpak org.libreoffice.LibreOffice \
"${my_flatpakbranch?}"
+rm -f "${my_dir?}"/LibreOffice.flatpakref
+printf '[Flatpak Ref]\nTitle=The Document Foundation LibreOffice\n' \
+ 'Name=org.libreoffice.LibreOffice\nBranch=%s\n' \
+ 'Url=http://download.documentfoundation.org/libreoffice/flatpak/repository\n' \
+ 'IsRuntime=False\nGPGKey=%s\n' "${my_flatpakbranch?}" \
+ $(base64 --wrap=0 < "${my_dir?}"/key) > "${my_dir?}"/LibreOffice.flatpakref