From d2a47e6e90bb0442b970bf3b55a3b21226edc8d5 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@uliege.be>
Date: Mon, 20 May 2024 19:00:36 +0200
Subject: [PATCH] add note on macOS on where the executables are in the bundle

---
 bundle_onelab.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bundle_onelab.sh b/bundle_onelab.sh
index 363c2c2..f86ce50 100755
--- a/bundle_onelab.sh
+++ b/bundle_onelab.sh
@@ -199,6 +199,9 @@ if [ $# -lt 1 ] || [ $1 == "macosx" ]; then
   ##tar zxvf /tmp/getdp-${GETDP}-MacOSXr.tgz -C /tmp
   unzip -q -o /tmp/conveks-${CONVEKS}-MacOSX.zip -d /tmp
   cp /tmp/README.txt onelab-MacOSX
+  echo "
+(The gmsh and getdp executables as well as the libraries and module files
+are located in the .app bundle, i.e. in Gmsh.app/Contents/MacOS/.)" >> onelab-MacOSX/README.txt
   cp -R gmsh_mount/Gmsh.app onelab-MacOSX/
   mv /tmp/getdp-*${GETDP}-MacOSX/bin/getdp onelab-MacOSX/Gmsh.app/Contents/MacOS/
   mv /tmp/conveks-*${CONVEKS}-MacOSX/lib/conveks.py onelab-MacOSX/Gmsh.app/Contents/MacOS/
@@ -244,6 +247,9 @@ if [ $# -lt 1 ] || [ $1 == "macosarm" ]; then
   ##tar zxvf /tmp/getdp-${GETDP}-MacOSARMr.tgz -C /tmp
   unzip -q -o /tmp/conveks-${CONVEKS}-MacOSARM.zip -d /tmp
   cp /tmp/README.txt onelab-MacOSARM
+  echo "
+(The gmsh and getdp executables as well as the libraries and module files
+are located in the .app bundle, i.e. in Gmsh.app/Contents/MacOS/.)" >> onelab-MacOSARM/README.txt
   cp -R gmsh_mount/Gmsh.app onelab-MacOSARM/
   mv /tmp/getdp-*${GETDP}-MacOSARM/bin/getdp onelab-MacOSARM/Gmsh.app/Contents/MacOS/
   mv /tmp/conveks-*${CONVEKS}-MacOSARM/lib/conveks.py onelab-MacOSARM/Gmsh.app/Contents/MacOS/
-- 
GitLab