Commit 441191e8 authored by David Boddie's avatar David Boddie 💬
Browse files

Add profile directory handling to packaging

parent 6550ca26
Pipeline #51964 passed with stage
[Desktop Entry]
Name=Librem 5 User Guide
Type=Application
Terminal=false
Exec=epiphany --application-mode --profile="/var/lib/epiphany-librem5-user-docs" file:///usr/share/doc/librem5-user-docs/html/index.html
StartupNotify=true
Exec=gnome-www-browser file:///usr/share/doc/librem5-user-docs/html/index.html
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=librem5-user-guide
......@@ -5,8 +5,8 @@ pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.proje
# directory, found in the project's root, generating a desktop file in the
# build directory.
desktop_file = i18n.merge_file(
input: 'librem5-user-guide.desktop.in',
output: 'librem5-user-guide.desktop',
input: 'epiphany-librem5-user-docs.desktop.in',
output: 'epiphany-librem5-user-docs.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
......
#!/bin/sh
# postinst script for librem5-user-docs
#
# see: dh_installdeb(1)
set -e
case "$1" in
configure)
mkdir -p /var/lib/epiphany-librem5-user-docs
cp -r /usr/share/applications/epiphany-librem5-user-docs.desktop /var/lib/epiphany-librem5-user-docs/
cp -r /usr/share/icons/hicolor/scalable/apps/librem5-user-guide.svg /var/lib/epiphany-librem5-user-docs/app-icon.svg
chown -R purism.purism /var/lib/epiphany-librem5-user-docs
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/bin/sh
# postrm script for librem5-user-docs
#
# see: dh_installdeb(1)
set -e
case "$1" in
purge)
rm -rf /var/lib/epiphany-librem5-user-docs
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
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