meshlab/install/linux/linux_install.sh
2020-01-27 09:18:17 +01:00

30 lines
766 B
Bash
Executable File

#!/bin/bash
# this is a script shell for setting up the application bundle for linux
# It should be run (not sourced) in the meshlab/src/install/linux dir.
export INSTALL_PATH=$(pwd)
cd ../../distrib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)
#check if we have an exec in distrib
if [ -f meshlab ]
then
echo "------------------"
else
echo "ERROR: meshlab bin not found inside distrib"
exit 1
fi
cp $INSTALL_PATH/../meshlab.png .
cp $INSTALL_PATH/default.desktop .
cp ../LICENSE.txt .
cp ../docs/readme.txt .
rm -r plugins/U3D_OSX/
rm -r plugins/U3D_W32/
$INSTALL_PATH/linuxdeployqt meshlab -appimage
#at this point, distrib folder contains all the files necessary to execute meshlab
echo "distrib folder is now a self contained meshlab application"