From 0b473962757402b8e7c18c62a9d69bd3f0905c03 Mon Sep 17 00:00:00 2001
From: Jens Steidl <Jens.Steidl@slub-dresden.de>
Date: Fri, 29 Sep 2023 16:55:58 +0200
Subject: [PATCH] - create symlinks for easy tool execution within default
 paths of target system

---
 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f3f9d4a..e6c7312 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -81,6 +81,10 @@ package-debian-job:
     # copy project files to be packaged
     - mkdir -p "${DEB_BUILD_DIR}/${INSTALL_PATH_VERAPDF_DEB}"
     - cp -r "${INSTALL_PATH_VERAPDF_DEB}" "${DEB_BUILD_DIR}/${INSTALL_PATH_VERAPDF_DEB}/.."
+    # create symlinks for easy-of-use
+    - mkdir -p "${DEB_BUILD_DIR}/usr/local/bin"
+    - ln -s "${INSTALL_PATH_VERAPDF_DEB}/verapdf" "${DEB_BUILD_DIR}/usr/local/bin/verapdf"
+    - ln -s "${INSTALL_PATH_VERAPDF_DEB}/verapdf-gui" "${DEB_BUILD_DIR}/usr/local/bin/verapdf-gui"
     # create deb control file from template
     - sed "s#VERSION_PLACEHOLDER#${VERAPDF_VERSION}-${REVISION}#g" gitlab-ci/verapdf.control > "${DEB_BUILD_DIR}/DEBIAN/control"
     # add checksums
-- 
GitLab