summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-22 12:10:06 +0300
committerWolfy-J <[email protected]>2019-05-22 12:10:06 +0300
commita86a3cddb2cc2612c06da01f1e58f4db5410c125 (patch)
treee5209c24b9a0112d42230323f3fbfa21c20958b6
parent7e60e7bb03d81263fe0f3a5f3f5dbd93166d2583 (diff)
fix linux download
-rw-r--r--bin/rr (renamed from src/bin/rr)5
-rw-r--r--composer.json2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/rr b/bin/rr
index e3311499..633b5a25 100644
--- a/src/bin/rr
+++ b/bin/rr
@@ -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"
]
}