Skip to content

Commit

Permalink
Merge pull request #1066 from nextcloud-releases/feat/builder_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Altahrim authored May 31, 2024
2 parents dff827e + 6b7edc7 commit 22fa052
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 78 deletions.
9 changes: 7 additions & 2 deletions build/config_builder
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,16 @@ foreach ($majorVersions as $majorVersion => $info) {
];
}

// Settings
$generatedConfig['_settings'] = [
'changelogServer' => 'https://updates.nextcloud.com/changelog_server/',
];

// Display result
echo '<?php',PHP_EOL,'return ';
echo preg_replace(
['/array\s*\(/', '/\)/', "/=>\s*\n\s*\[/", '/ /'],
['[', ']', '=> [', "\t"],
['/array\s*\(/', '/\)/', "/=>\s*\n\s*\[/", '/(\s*)(\d+)(\s*=>)/', '/ /'],
['[', ']', '=> [', "\\1'\\2'\\3", "\t"],
var_export($generatedConfig, true)
);
echo ';',PHP_EOL;
Loading

0 comments on commit 22fa052

Please sign in to comment.