Commit abae3751682350b8b9c8dcbae5049543877e7dd2

Authored by Perry Werneck
1 parent 2a4ddc6a

adding option for run a dropbox/google drive sync script after windows builds"

Showing 1 changed file with 21 additions and 0 deletions   Show diff stats
@@ -830,8 +830,19 @@ do @@ -830,8 +830,19 @@ do
830 fi 830 fi
831 831
832 if [ ! -z ${WIN_PACKAGE_SERVER} ]; then 832 if [ ! -z ${WIN_PACKAGE_SERVER} ]; then
  833 +
833 echo " --no-publish Don't publish binaries in ${WIN_PACKAGE_SERVER}/${PRODUCT_NAME}" 834 echo " --no-publish Don't publish binaries in ${WIN_PACKAGE_SERVER}/${PRODUCT_NAME}"
834 echo " --publish Publish binaries in ${WIN_PACKAGE_SERVER}/${PRODUCT_NAME}" 835 echo " --publish Publish binaries in ${WIN_PACKAGE_SERVER}/${PRODUCT_NAME}"
  836 +
  837 + else
  838 +
  839 + if [ -x ~/bin/sync.${PRODUCT_NAME} ]; then
  840 +
  841 + echo " --no-publish Don't call ~/bin/sync.${PRODUCT_NAME}"
  842 + echo " --publish Call ~/bin/sync.${PRODUCT_NAME} when build finishes"
  843 +
  844 + fi
  845 +
835 fi 846 fi
836 847
837 if [ -d ~/public_html/win/${PRODUCT_NAME} ]; then 848 if [ -d ~/public_html/win/${PRODUCT_NAME} ]; then
@@ -912,6 +923,16 @@ done @@ -912,6 +923,16 @@ done
912 makeRuntime 923 makeRuntime
913 makeInstaller 924 makeInstaller
914 925
  926 +if [ "${PUBLISH}" == "1" ] && [ -x ~/bin/sync.${PRODUCT_NAME} ]; then
  927 +
  928 + echo "Calling sync script..."
  929 + ~/bin/sync.${PRODUCT_NAME}
  930 + if [ "$?" != "0" ]; then
  931 + failed "Can't sync folders"
  932 + fi
  933 +
  934 +fi
  935 +
915 cleanup 936 cleanup
916 937
917 938