From abae3751682350b8b9c8dcbae5049543877e7dd2 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 16 Jul 2020 15:29:47 -0300 Subject: [PATCH] adding option for run a dropbox/google drive sync script after windows builds" --- win/pack.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+), 0 deletions(-) diff --git a/win/pack.sh b/win/pack.sh index 452217f..592e5c1 100755 --- a/win/pack.sh +++ b/win/pack.sh @@ -830,8 +830,19 @@ do fi if [ ! -z ${WIN_PACKAGE_SERVER} ]; then + echo " --no-publish Don't publish binaries in ${WIN_PACKAGE_SERVER}/${PRODUCT_NAME}" echo " --publish Publish binaries in ${WIN_PACKAGE_SERVER}/${PRODUCT_NAME}" + + else + + if [ -x ~/bin/sync.${PRODUCT_NAME} ]; then + + echo " --no-publish Don't call ~/bin/sync.${PRODUCT_NAME}" + echo " --publish Call ~/bin/sync.${PRODUCT_NAME} when build finishes" + + fi + fi if [ -d ~/public_html/win/${PRODUCT_NAME} ]; then @@ -912,6 +923,16 @@ done makeRuntime makeInstaller +if [ "${PUBLISH}" == "1" ] && [ -x ~/bin/sync.${PRODUCT_NAME} ]; then + + echo "Calling sync script..." + ~/bin/sync.${PRODUCT_NAME} + if [ "$?" != "0" ]; then + failed "Can't sync folders" + fi + +fi + cleanup -- libgit2 0.21.2