diff options
author | Wolfy-J <[email protected]> | 2019-05-22 12:10:06 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-22 12:10:06 +0300 |
commit | a86a3cddb2cc2612c06da01f1e58f4db5410c125 (patch) | |
tree | e5209c24b9a0112d42230323f3fbfa21c20958b6 | |
parent | 7e60e7bb03d81263fe0f3a5f3f5dbd93166d2583 (diff) |
fix linux download
-rw-r--r-- | bin/rr (renamed from src/bin/rr) | 5 | ||||
-rw-r--r-- | composer.json | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -120,7 +120,6 @@ class RRHelper $ext = '.tar.gz'; } - // todo: support linux return 'https://github.com/spiral/roadrunner/releases/download/v' . static::getVersion() . '/' . self::getSignature() . $ext; @@ -213,6 +212,10 @@ class RRHelper $progressBar->setFormat('verbose'); $zipFileName = tempnam('.', "rr_zip"); + if (RRHelper::getOSType() == 'linux') { + $zipFileName .= '.tar.gz'; + } + $zipFile = fopen($zipFileName, "w+"); $curlResource = curl_init(); diff --git a/composer.json b/composer.json index e59f0459..323d2ac3 100644 --- a/composer.json +++ b/composer.json @@ -27,6 +27,6 @@ } }, "bin": [ - "src/bin/rr" + "bin/rr" ] } |