fix windows installer name

This commit is contained in:
Alessandro Muntoni 2024-02-02 16:01:58 +01:00
parent 38fd8440d2
commit 06237d733e

View File

@ -47,8 +47,23 @@ rm $INSTALL_PATH/ExecWaitJob.nsh
rm $INSTALL_PATH/FileAssociation.nsh
mkdir $PACKAGES_PATH
mv $INSTALL_PATH/MeshLab*-windows.exe $PACKAGES_PATH
# get the name of the installer file, without the path
INSTALLER_NAME=$(basename $INSTALL_PATH/MeshLab*-windows.exe)
# get the name of the installer without the extension
INSTALLER_NAME=${INSTALLER_NAME%.*}
# get running architecture
ARCH=$(uname -m)
mv $PACKAGES_PATH/MeshLab*-windows.exe $PACKAGES_PATH/MeshLab*-windows_$ARCH.exe
# append the architecture and extension to the installer name
INSTALLER_NAME=${INSTALLER_NAME}_$ARCH.exe
# rename the installer and move it to the packages folder
mv $INSTALL_PATH/MeshLab*-windows.exe $INSTALL_PATH/$INSTALLER_NAME
mv $INSTALL_PATH/$INSTALLER_NAME $PACKAGES_PATH