@@ -49,32 +49,35 @@ APP_IMAGE_DIR="${DEST_IMAGE_DIR}/${APP_NAME}/"
4949
5050APP_VERSION=" ${FULL_APP_VERSION} "
5151
52- # Remove beta/rc qualifiers as they cannot be used on windows
53- if [ " ${machine} " = " win" ]; then
52+ # Remove beta/rc qualifiers as they cannot be used on windows/macos
53+ if [ " ${machine} " = " win" -o " $machine " = " mac " ]; then
5454 PRE_TAG=" ${APP_VERSION## [0-9].[0-9].[0-9]} "
5555 PRE_TYPE=${PRE_TAG% [0-9]* }
5656 PRE_VERSION=${PRE_TAG##* [!0-9]}
5757
5858 APP_VERSION=" ${APP_VERSION% rc[0-9]* } "
5959 APP_VERSION=" ${APP_VERSION% beta[0-9]* } "
6060
61- if [ " ${PRE_TAG} " ]; then
62- echo ' >>> Adjusting version for prerelease for Windows'
63- echo " >>> PRE_TAG=${PRE_TAG} PRE_TYPE=${PRE_TYPE} PRE_VERSION=${PRE_VERSION} "
61+ if [ " ${machine} " = " win" ]; then
62+ if [ " ${PRE_TAG} " ]; then
63+ echo ' >>> Adjusting version for prerelease for Windows'
64+ echo " >>> PRE_TAG=${PRE_TAG} PRE_TYPE=${PRE_TYPE} PRE_VERSION=${PRE_VERSION} "
6465
65- if [ -z " ${PRE_VERSION} " ]; then
66- PRE_VERSION=1
67- fi
68- if [ " ${PRE_TYPE} " = " beta" ]; then
69- PRE_VERSION=$( expr $PRE_VERSION + 100)
70- fi
71- if [ " ${PRE_TYPE} " = " rc" ]; then
72- PRE_VERSION=$( expr $PRE_VERSION + 200)
66+ if [ -z " ${PRE_VERSION} " ]; then
67+ PRE_VERSION=1
68+ fi
69+ if [ " ${PRE_TYPE} " = " beta" ]; then
70+ PRE_VERSION=$( expr $PRE_VERSION + 100)
71+ fi
72+ if [ " ${PRE_TYPE} " = " rc" ]; then
73+ PRE_VERSION=$( expr $PRE_VERSION + 200)
74+ fi
75+ APP_VERSION=" ${APP_VERSION} .${PRE_VERSION} "
76+ else
77+ APP_VERSION=" ${APP_VERSION} .1000"
7378 fi
74- APP_VERSION=" ${APP_VERSION} .${PRE_VERSION} "
75- else
76- APP_VERSION=" ${APP_VERSION} .1000"
7779 fi
80+
7881fi
7982
8083if [ " $TYPE " = " app-image" ]; then
@@ -223,7 +226,11 @@ if [ "${machine}" = "win" ]; then
223226 signtool_file " $APP_NAME EXE installer" " $file "
224227 fi
225228
226- # Rename files in case of pre-relase
229+ fi
230+
231+ # Rename files in case of pre-relase
232+ if [ " ${machine} " = " win" -o " $machine " = " mac" ]; then
233+
227234 if [ " ${APP_VERSION} " != " ${FULL_APP_VERSION} " ]; then
228235 D=" ${STAGING_DIR} /packages/"
229236
0 commit comments