[glade] AppRun / PrepareAppDir.sh



commit 1e3554c5929184ed5cea22049c9babea2d6754fa
Author: Tristan Van Berkom <tristan upstairslabs com>
Date:   Mon Dec 16 18:37:08 2013 +0900

    AppRun / PrepareAppDir.sh
    
    Make the runner script and PrepareAppDir.sh work with alternative
    install prefixes, not just '~/AppImages/Install'.

 build/linux/AppRun           |    4 ++--
 build/linux/PrepareAppDir.sh |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/build/linux/AppRun b/build/linux/AppRun
index 9e29e57..2a12f6b 100755
--- a/build/linux/AppRun
+++ b/build/linux/AppRun
@@ -20,8 +20,8 @@
 #   Tristan Van Berkom <tristan upstairslabs com>
 #
 
-# This needs to be set to /home/username/AppImages/Install
-INSTALL_PREFIX=/home/tristan/AppImages/Install
+# This is setup by PrepareAppDir.sh
+INSTALL_PREFIX= APP_DIR_ROOT@
 
 # Base environment variables
 LD_LIBRARY_PATH=${APPDIR}${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}
diff --git a/build/linux/PrepareAppDir.sh b/build/linux/PrepareAppDir.sh
index 3419cd3..e57041b 100755
--- a/build/linux/PrepareAppDir.sh
+++ b/build/linux/PrepareAppDir.sh
@@ -97,7 +97,8 @@ echo "Done."
 
 echo -n "Installing desktop file and runner script... "
 cp ${APP_DIR_ROOT}/share/applications/glade.desktop ${APP_DIR_ROOT}
-cp ${GLADE_DIR}/build/linux/AppRun ${APP_DIR_ROOT}
+cat ${BUNDLE_DIR}/AppRun | sed -e "s|@APP_DIR_ROOT@|${APP_DIR_ROOT}|g" > ${APP_DIR_ROOT}/AppRun
+chmod +x ${APP_DIR_ROOT}/AppRun
 echo "Done."
 
 echo -n "Fixing pixbuf loaders to have bundle relative paths... "


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]