Make instructions simpler for publishing on Windows

We can not reliably run the script over ssh, print instructions
so users can run it manually.
This commit is contained in:
Slava Kim
2015-01-15 17:55:09 -08:00
committed by Sashko Stubailo
parent 45e8f40ece
commit 7a9ccaa9db

View File

@@ -65,7 +65,7 @@ END
trap - EXIT
else
echo "${green}Publishing from Windowsy platform.${NC}"
parse_keys
echo "${green}Going to ssh into machine running $PLATFORM and publish the release${NC}"
@@ -90,8 +90,14 @@ END
ssh $USERNAME@$HOST -oUserKnownHostsFile=$TEMP_KEY -p $PORT -i $TEMP_PRIV_KEY "cmd /c echo $line>> C:\\publish-tool.bat" 2>/dev/null
done 10< $BAT_FILENAME
# run the batch script to publish the meteor tool
ssh $USERNAME@$HOST -oUserKnownHostsFile=$TEMP_KEY -p $PORT -i $TEMP_PRIV_KEY "cmd /c C:\\publish-tool.bat"
# since running the script remotely fails for an unknown reason, we just
# prompt user to run this generated script themselves
echo "*******************************************************************"
echo "* You will be dropped into remote Windows host's ssh prompt."
echo "* (Look at the top of your window, the output might be weirdly overlaying your terminal)"
echo "* Please run the C:\\publish-tool.bat script to publish the release."
echo "*******************************************************************"
ssh $USERNAME@$HOST -oUserKnownHostsFile=$TEMP_KEY -p $PORT -i $TEMP_PRIV_KEY 2> /dev/null
trap - EXIT
fi