Skip to content

Commit 97c40ba

Browse files
committed
Update version for update server
1 parent f57bb52 commit 97c40ba

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

build-release.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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(/<version>([0-9.]+)<\/version>/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+
2230
const updateChangelog = async () => {
2331
const file = await promises.readFile('./CHANGELOG.md', 'utf8')
2432
const markdown = file.replace(/##\sWIP/g, `## ${pkg.version}`)
@@ -29,4 +37,5 @@ const updateChangelog = async () => {
2937

3038
updateJoomlaAssetJson()
3139
updateTemplateXml()
40+
updateUpdateScript()
3241
updateChangelog()

updates/bettum_updates.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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>

0 commit comments

Comments
 (0)