Skip to content

Commit

Permalink
Fixed installer version to 1.0 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-kuendig committed Sep 8, 2020
1 parent c12161f commit bd618b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Downloader/OctoberCms.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function download($force = false)
*/
protected function fetchZip()
{
$response = (new Client)->get('https://github.com/octobercms/october/archive/1.1.zip');
$response = (new Client)->get('https://github.com/octobercms/october/archive/1.0.zip');
file_put_contents($this->zipFile, $response->getBody());

return $this;
Expand Down Expand Up @@ -84,7 +84,7 @@ protected function extract()
*/
protected function fetchHtaccess()
{
$contents = file_get_contents('https://raw.githubusercontent.com/octobercms/october/1.1/.htaccess');
$contents = file_get_contents('https://raw.githubusercontent.com/octobercms/october/1.0/.htaccess');
file_put_contents(getcwd() . DS . '.htaccess', $contents);

return $this;
Expand All @@ -106,7 +106,7 @@ protected function setMaster()
$contents = preg_replace_callback(
'/october\/(?:rain|system|backend|cms)":\s"([^"]+)"/m',
function ($treffer) {
return str_replace($treffer[1], '~1.1', $treffer[0]);
return str_replace($treffer[1], '~1.0', $treffer[0]);
},
$contents
);
Expand All @@ -129,7 +129,7 @@ protected function cleanUp()
@unlink($this->zipFile);

$directory = getcwd();
$source = $directory . DS . 'october-1.1';
$source = $directory . DS . 'october-1.0';

(new Process(sprintf('mv %s %s', $source . '/*', $directory)))->run();
(new Process(sprintf('rm -rf %s', $source)))->run();
Expand Down

0 comments on commit bd618b3

Please sign in to comment.