Skip to content

Commit

Permalink
fix windows installer name
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Feb 2, 2024
1 parent 38fd844 commit 06237d7
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions scripts/Windows/internal/2c_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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




0 comments on commit 06237d7

Please sign in to comment.