mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 08:09:39 +00:00
46 lines
1.1 KiB
Bash
Executable File
46 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# this is a script shell for deploying a meshlab-portable app.
|
|
# Requires a properly built meshlab.
|
|
#
|
|
# Without given arguments, the folder that will be deployed is meshlab/install.
|
|
#
|
|
# You can give as argument the INSTALL_PATH in the following way:
|
|
# bash 2_deploy.sh --install_path=/path/to/install
|
|
# -i argument is also supported.
|
|
#
|
|
# After running this script, $INSTALL_PATH/meshlab.app will be a portable meshlab application.
|
|
|
|
SCRIPTS_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
|
|
INSTALL_PATH=$SCRIPTS_PATH/../../install
|
|
QT_DIR=""
|
|
APPNAME="meshlab.app"
|
|
|
|
#checking for parameters
|
|
for i in "$@"
|
|
do
|
|
case $i in
|
|
-i=*|--install_path=*)
|
|
INSTALL_PATH="${i#*=}"
|
|
shift # past argument=value
|
|
;;
|
|
-qt=*|--qt_dir=*)
|
|
QT_DIR=${i#*=}/bin/
|
|
shift # past argument=value
|
|
;;
|
|
*)
|
|
# unknown option
|
|
;;
|
|
esac
|
|
done
|
|
|
|
ARGUMENTS=""
|
|
|
|
for plugin in $INSTALL_PATH/$APPNAME/Contents/PlugIns/*.so
|
|
do
|
|
ARGUMENTS="${ARGUMENTS} -executable=${plugin}"
|
|
done
|
|
|
|
${QT_DIR}macdeployqt $INSTALL_PATH/$APPNAME \
|
|
$ARGUMENTS
|