mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Display progress during upload (ninja 1.5)
This commit is contained in:
@@ -919,6 +919,7 @@ rule tbz_archive
|
||||
|
||||
rule upload
|
||||
command = bin/upload -k$upload_keyfile -d$upload_destination -t'v$APP_VERSION' -m'{"version":"$APP_VERSION","revision":"$APP_REVISION"}' $in > $out~ && mv $out~ $out
|
||||
pool = console
|
||||
generator = true
|
||||
description = Upload ‘$in’…
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ def create_release(path, repository, tag, description, content_type)
|
||||
|
||||
if url = github['upload_url']
|
||||
url.sub!(/\{\?name\}/, '')
|
||||
upload_url = "|curl -sn -H'Content-Type: #{content_type}' --data-binary @'#{path}' '#{url}?name=#{basename}'"
|
||||
upload_url = "|curl -nH'Content-Type: #{content_type}' --data-binary @'#{path}' '#{url}?name=#{basename}'"
|
||||
open(upload_url) do |io|
|
||||
res = JSON.parse(io.read)
|
||||
return "https://github.com/#{repository}/releases/download/#{tag}/#{basename}" if res.include?('url')
|
||||
|
||||
Reference in New Issue
Block a user