meshlab/scripts/windows/windows_installer.sh
2020-10-20 10:27:50 +02:00

34 lines
878 B
Bash

# This is a powershell script for computing an installer for MeshLab.
# Requires:
# - a properly deployed meshlab (see windows_deploy.ps1);
# - the env variable PATH containing the NSIS folder (makensis.exe must be directly accessible)
#
# Without given arguments, the folder that will be deployed is meshlab/distrib.
#
# You can give as argument the DISTRIB_PATH.
#
# After running this script, the installer can be found inside the resources folder.
#saving location where script has been run
DIR=$PWD
#checking for parameters
if [ "$#" -eq 0 ]
then
BUNDLE_PATH="../../src/install"
else
BUNDLE_PATH=$(realpath $1)
fi
cd "$(dirname "$(realpath "$0")")"; #move to script directory
SCRIPTS_PATH=$(pwd)
sh resources/windows_nsis_script.sh $BUNDLE_PATH
makensis.exe resources/meshlab_final.nsi
rm resources/meshlab_final.nsi
#going back to original location
cd $DIR