meshlab/scripts/Windows/2_deploy.sh
2020-10-30 12:44:30 +01:00

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"