Commit abae3751682350b8b9c8dcbae5049543877e7dd2
1 parent
2a4ddc6a
Exists in
master
and in
3 other branches
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
win/pack.sh
... | ... | @@ -830,8 +830,19 @@ do |
830 | 830 | fi |
831 | 831 | |
832 | 832 | if [ ! -z ${WIN_PACKAGE_SERVER} ]; then |
833 | + | |
833 | 834 | echo " --no-publish Don't publish binaries in ${WIN_PACKAGE_SERVER}/${PRODUCT_NAME}" |
834 | 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 | 846 | fi |
836 | 847 | |
837 | 848 | if [ -d ~/public_html/win/${PRODUCT_NAME} ]; then |
... | ... | @@ -912,6 +923,16 @@ done |
912 | 923 | makeRuntime |
913 | 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 | 936 | cleanup |
916 | 937 | |
917 | 938 | ... | ... |