mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 16:14:38 +00:00
31 lines
970 B
Bash
31 lines
970 B
Bash
#!/bin/bash
|
|
# This is a script shell for deploying a meshlab-portable folder.
|
|
# Requires a properly built meshlab (see windows_build.sh).
|
|
#
|
|
# Without given arguments, the folder that will be deployed is meshlab/src/install.
|
|
#
|
|
# You can give as argument the path where meshlab is installed.
|
|
|
|
SCRIPTS_PATH="$(dirname "$(realpath "$0")")"
|
|
DISTRIB_PATH=$SCRIPTS_PATH/../../distrib
|
|
|
|
#checking for parameters
|
|
if [ "$#" -eq 0 ]
|
|
then
|
|
BUNDLE_PATH=$SCRIPTS_PATH/../../src/install
|
|
else
|
|
BUNDLE_PATH=$(realpath $1)
|
|
fi
|
|
|
|
windeployqt $BUNDLE_PATH/meshlab.exe
|
|
|
|
windeployqt $BUNDLE_PATH/plugins/filter_sketchfab.dll --libdir $BUNDLE_PATH/
|
|
|
|
mv $BUNDLE_PATH/lib/meshlab/IFX* $BUNDLE_PATH
|
|
cp $BUNDLE_PATH/IFXCoreStatic.lib $BUNDLE_PATH/lib/meshlab/
|
|
cp $DISTRIB_PATH/LICENSE.txt $BUNDLE_PATH/
|
|
cp $DISTRIB_PATH/privacy.txt $BUNDLE_PATH/
|
|
|
|
#at this point, distrib folder contains all the files necessary to execute meshlab
|
|
echo "$BUNDLE_PATH is now a self contained meshlab application"
|