Skip to content

Commit

Permalink
fix linux download
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed May 22, 2019
1 parent 7e60e7b commit a86a3cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/bin/rr → bin/rr
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
}
},
"bin": [
"src/bin/rr"
"bin/rr"
]
}

0 comments on commit a86a3cd

Please sign in to comment.