File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ const updateTemplateXml = async () => {
1919 console . log ( 'File "templateDetails.xml" has been updated' )
2020}
2121
22+ const updateUpdateScript = async ( ) => {
23+ const file = await promises . readFile ( './updates/bettum_updates.xml' , 'utf8' )
24+ const xml = file . replace ( / < v e r s i o n > ( [ 0 - 9 . ] + ) < \/ v e r s i o n > / g, `<version>${ pkg . version } </version>` )
25+
26+ await promises . writeFile ( './updates/bettum_updates.xml' , xml )
27+ console . log ( 'File "bettum_updates.xml" has been updated' )
28+ }
29+
2230const updateChangelog = async ( ) => {
2331 const file = await promises . readFile ( './CHANGELOG.md' , 'utf8' )
2432 const markdown = file . replace ( / # # \s W I P / g, `## ${ pkg . version } ` )
@@ -29,4 +37,5 @@ const updateChangelog = async () => {
2937
3038updateJoomlaAssetJson ( )
3139updateTemplateXml ( )
40+ updateUpdateScript ( )
3241updateChangelog ( )
Original file line number Diff line number Diff line change 44 <description >A dark themed administrator template for Joomla 4</description >
55 <element >bettum</element >
66 <type >template</type >
7- <version >0.0.12 </version >
7+ <version >0.0.13 </version >
88 <infourl title =" Bettum Release Notes" >https://github.com/C-Lodder/joomla4-backend-template/blob/master/CHANGELOG.md</infourl >
99 <downloads >
1010 <downloadurl type =" full" format =" zip" >https://github.com/C-Lodder/joomla4-backend-template/releases/download/v0.0.12/tpl_bettum-v0.0.12.zip</downloadurl >
You can’t perform that action at this time.
0 commit comments