diff options
author | Mike DePaulo <mikedep333@gmail.com> | 2014-05-08 21:33:43 -0400 |
---|---|---|
committer | Mike DePaulo <mikedep333@gmail.com> | 2014-05-08 21:33:43 -0400 |
commit | 6569c3737091a467eadc21469c0a090bcec07a8a (patch) | |
tree | dde2cf670ecd49b6184f3fad418285760af60287 | |
parent | ce0b35ac0c8a65151e6257314795e4ab71a74755 (diff) | |
download | buildscripts-6569c3737091a467eadc21469c0a090bcec07a8a.tar.gz buildscripts-6569c3737091a467eadc21469c0a090bcec07a8a.tar.bz2 buildscripts-6569c3737091a467eadc21469c0a090bcec07a8a.zip |
Fix uploaded NSIS packages having 000 permissions (issue reported to me over IRC by Mike Gabriel)
-rw-r--r-- | bin/build-nsis-package.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/build-nsis-package.sh b/bin/build-nsis-package.sh index 40186b5..ae7ef59 100644 --- a/bin/build-nsis-package.sh +++ b/bin/build-nsis-package.sh @@ -237,6 +237,11 @@ upload_packages() { # remove installer packages that are older than 30 days 0</dev/null ssh $REPOS_SERVER "find \"$MINGW_REPOS_BASE/$l_DIST/$l_CODENAME/*\" -mtime +30 -name \"x2goclient-*-setup.exe\" 2>/dev/null | while read installer; do rm -f "$installer"; done + + # Ensure that the package is world-readable before being uploaded to an HTTP/HTTPS server. + # Otherwise, sometimes cygwin sftp/scp uploads files with 000 permissions. + # What probably happens is that Cygwin is enumerates the windows permissions as a bunch of ACLs, and sets the octal permissions to 000. + chmod a+r /cygdrive/d/Build/GIT/nightly/$PROJECT/nsis/$PROJECT-*-setup.exe # copy new installer to download location # FIXME: this should work scp /cygdrive/d/Build/pkg-dist/$l_DIST/$l_CODENAME/i386/$PROJECT-*-setup.exe" "$MINGW_REPOS_BASE/$l_DIST/$l_CODENAME/" |