Permalink
Browse files

fixed the upload with --data-binary

  • Loading branch information...
hypatia2 committed Aug 25, 2015
1 parent cc02f05 commit 3df6c3a12f376f6a5a611b844b01ac1b4347dfcc
Showing with 1 addition and 1 deletion.
  1. +1 −1 build.tcl
@@ -171,7 +171,7 @@ proc github-upload-artifacts {upload_url gituser gitpass} {
foreach file [concat [glob dist/linux-*/*.deb] [glob dist/linux-*/*.rpm]] {
set filename [file tail $file]
set uurl $upload_url?name=$filename
set uploaded [exec -ignorestderr curl -XPOST --header "Content-Type: application/zip" -d @$file $uurl -u "$gituser:$gitpass"]
set uploaded [exec -ignorestderr curl -XPOST --header "Content-Type: application/zip" --data-binary @$file $uurl -u "$gituser:$gitpass"]
set u [json::json2dict $uploaded]
set downurl [dict get $u browser_download_url]
lappend artifacts $downurl

0 comments on commit 3df6c3a

Please sign in to comment.