@@ -106,9 +106,13 @@ else
106106 mkdir -p " $INSTALL_LOCATION "
107107fi
108108
109+ if [ -z " $DOTNET_ROOT " ]; then
110+ DOTNET_ROOT=" $( dirname $( which dotnet) ) "
111+ fi
112+
109113# Publish core application executables
110114echo " Publishing core application..."
111- dotnet publish " $GCM_SRC " \
115+ $DOTNET_ROOT / dotnet publish " $GCM_SRC " \
112116 --configuration=" $CONFIGURATION " \
113117 --framework=" $FRAMEWORK " \
114118 --runtime=" $RUNTIME " \
@@ -117,7 +121,7 @@ dotnet publish "$GCM_SRC" \
117121 --output=" $( make_absolute " $PAYLOAD " ) " || exit 1
118122
119123echo " Publishing Bitbucket UI helper..."
120- dotnet publish " $BITBUCKET_UI_SRC " \
124+ $DOTNET_ROOT / dotnet publish " $BITBUCKET_UI_SRC " \
121125 --configuration=" $CONFIGURATION " \
122126 --framework=" $FRAMEWORK " \
123127 --runtime=" $RUNTIME " \
@@ -126,7 +130,7 @@ dotnet publish "$BITBUCKET_UI_SRC" \
126130 --output=" $( make_absolute " $PAYLOAD " ) " || exit 1
127131
128132echo " Publishing GitHub UI helper..."
129- dotnet publish " $GITHUB_UI_SRC " \
133+ $DOTNET_ROOT / dotnet publish " $GITHUB_UI_SRC " \
130134 --configuration=" $CONFIGURATION " \
131135 --framework=" $FRAMEWORK " \
132136 --runtime=" $RUNTIME " \
@@ -135,7 +139,7 @@ dotnet publish "$GITHUB_UI_SRC" \
135139 --output=" $( make_absolute " $PAYLOAD " ) " || exit 1
136140
137141echo " Publishing GitLab UI helper..."
138- dotnet publish " $GITLAB_UI_SRC " \
142+ $DOTNET_ROOT / dotnet publish " $GITLAB_UI_SRC " \
139143 --configuration=" $CONFIGURATION " \
140144 --framework=" $FRAMEWORK " \
141145 --runtime=" $RUNTIME " \
@@ -225,4 +229,4 @@ if [ $INSTALL_FROM_SOURCE = false ]; then
225229 dpkg-deb --build " $DEBROOT " " $DEBPKG " || exit 1
226230fi
227231
228- echo $MESSAGE
232+ echo $MESSAGE
0 commit comments