Skip to content

Commit 60b7d8f

Browse files
committed
download directly to file
1 parent dc9bbd3 commit 60b7d8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Composer/InstallerScripts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ public static function postUpdateAndInstall(Event $event)
7373
echo '> Platform: ' . $platform . "\n";
7474
echo '> Architecture: ' . $architecture . "\n";
7575

76-
$httpClient = new Client();
7776
$downloadLink = sprintf('https://github.com/Flowpack/prunner/releases/download/v%s/prunner_%s_%s_%s.tar.gz', $version, $version, $platform, $architecture);
78-
$downloadedFileContents = $httpClient->get($downloadLink)->getBody()->getContents();
77+
$httpClient = new Client();
78+
$httpClient->get($downloadLink, ['sink' => 'Data/Temporary/prunner.tar.gz']);
7979
echo '> Download complete.' . "\n";
8080

8181
file_put_contents('Data/Temporary/prunner.tar.gz', $downloadedFileContents);

0 commit comments

Comments
 (0)