Skip to content

Commit 05929bb

Browse files
committed
Prepare the 4.1.0 release
Signed-off-by: Roland Dalmulder <[email protected]>
1 parent 16f3485 commit 05929bb

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

administrator/components/com_patchtester/patchtester.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<extension type="component" version="4.0" method="upgrade">
33
<name>com_patchtester</name>
44
<author>Joomla! Project</author>
5-
<creationDate>04-March-2021</creationDate>
5+
<creationDate>02-May-2021</creationDate>
66
<copyright>(C) 2011 - 2012 Ian MacLennan, (C) 2013 - 2018 Open Source Matters, Inc. All rights reserved.</copyright>
77
<license>GNU General Public License version 2 or later</license>
88
<authorEmail>[email protected]</authorEmail>
99
<authorUrl>https://www.joomla.org</authorUrl>
10-
<version>4.0.1</version>
10+
<version>4.1.0</version>
1111
<description>COM_PATCHTESTER_XML_DESCRIPTION</description>
1212
<scriptfile>script.php</scriptfile>
1313
<install>

build/patchtester/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Creating a release
2+
1. Run the `release.php -v=x.x.x` with the new version number
3+
2. Rever the changes in the `manifest.xml` that are not related to the release
4+
2. Run the `build.sh x.x.x` with the new version number
5+
3. Copy the SHA384 from the `checksums.json` file to the `manifest.xml`
6+
4. Upload the generated files to the Github release

build/patchtester/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ rm -rf build/packaging/admin/backups/*.txt
99
mv build/packaging/admin/patchtester.xml build/packaging/patchtester.xml
1010
mv build/packaging/admin/script.php build/packaging/script.php
1111
cd build/packaging
12-
tar jcf ../packages/com_patchtester.tar.bz2 .
13-
tar zcf ../packages/com_patchtester.tar.gz .
14-
zip -r ../packages/com_patchtester.zip .
12+
tar jcf ../packages/com_patchtester_"$1".tar.bz2 .
13+
tar zcf ../packages/com_patchtester_"$1".tar.gz .
14+
zip -r ../packages/com_patchtester_"$1".zip .
1515
cd ../../
1616
composer install
1717
php build/patchtester/hash_generator.php

build/patchtester/release.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function usage($command)
105105
}
106106

107107
// Replaces the `__DEPLOY_VERSION__` marker with the "release" version number
108-
system('cd ' . $rootPath . ' && find administrator -name "*.php" -type f -exec sed -i "" "s/__DEPLOY_VERSION__/' . $version['release'] . '/g" "{}" \;');
108+
system('cd ' . $rootPath . ' && find administrator -name "*.php" -type f -exec sed -i "s/__DEPLOY_VERSION__/' . $version['release'] . '/g" "{}" \;');
109109

110110
// If not instructed to exclude it, update the update server's manifest
111111
if (!isset($opts['exclude-manifest']))
@@ -114,7 +114,7 @@ function usage($command)
114114
{
115115
$fileContents = file_get_contents($rootPath . $updateServerFile);
116116
$fileContents = preg_replace('#<infourl title="Patch Tester Component">[^<]*</infourl>#', '<infourl title="Patch Tester Component">https://github.com/joomla-extensions/patchtester/releases/tag/' . $version['release'] . '</infourl>', $fileContents);
117-
$fileContents = preg_replace('#<downloadurl type="full" format="zip">[^<]*</downloadurl>#', '<downloadurl type="full" format="zip">https://github.com/joomla-extensions/patchtester/releases/download/' . $version['release'] . '/com_patchtester.zip</downloadurl>', $fileContents);
117+
$fileContents = preg_replace('#<downloadurl type="full" format="zip">[^<]*</downloadurl>#', '<downloadurl type="full" format="zip">https://github.com/joomla-extensions/patchtester/releases/download/' . $version['release'] . '/com_patchtester_' . $version['release'] . '.zip</downloadurl>', $fileContents);
118118
file_put_contents($rootPath . $updateServerFile, $fileContents);
119119

120120
echo '*************' . PHP_EOL;

manifest.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
<description>Joomla! CMS Patch Tester Component</description>
2323
<element>com_patchtester</element>
2424
<type>component</type>
25-
<version>3.0.0-rc</version>
25+
<version>3.0.0</version>
2626
<client>administrator</client>
27-
<infourl title="Patch Tester Component">https://github.com/joomla-extensions/patchtester/releases/tag/3.0.0.rc</infourl>
27+
<infourl title="Patch Tester Component">https://github.com/joomla-extensions/patchtester/releases/tag/3.0.0</infourl>
2828
<downloads>
29-
<downloadurl type="full" format="zip">https://github.com/joomla-extensions/patchtester/releases/download/3.0.0.rc/com_patchtester.zip</downloadurl>
29+
<downloadurl type="full" format="zip">https://github.com/joomla-extensions/patchtester/releases/download/3.0.0/com_patchtester.zip</downloadurl>
3030
</downloads>
31-
<sha384>adb3d5521c136266eb110c42d466578bd4c8e16c4ef1d989aeeb4e383bdaee20a68297e069a0e9273ba918850bdd59a0</sha384>
31+
<sha384>0cafdeb2cfbe5b509e8c885c8d96098ba52d984fb37693fc753d64c736bfe148d44742fad21bc2bec4b1c9904df1cfd3</sha384>
3232
<tags>
3333
<tag>rc</tag>
3434
</tags>
@@ -39,13 +39,13 @@
3939
<description>Joomla! CMS Patch Tester Component</description>
4040
<element>com_patchtester</element>
4141
<type>component</type>
42-
<version>4.0.1</version>
42+
<version>4.1.0</version>
4343
<client>administrator</client>
44-
<infourl title="Patch Tester Component">https://github.com/joomla-extensions/patchtester/releases/tag/4.0.1</infourl>
44+
<infourl title="Patch Tester Component">https://github.com/joomla-extensions/patchtester/releases/tag/4.1.0</infourl>
4545
<downloads>
46-
<downloadurl type="full" format="zip">https://github.com/joomla-extensions/patchtester/releases/download/4.0.1/com_patchtester.zip</downloadurl>
46+
<downloadurl type="full" format="zip">https://github.com/joomla-extensions/patchtester/releases/download/4.1.0/com_patchtester_4.1.0.zip</downloadurl>
4747
</downloads>
48-
<sha384>8e895685840d349f0bd714eebb88a08865ee1fdde4d511624a4baedb7872ed6192c8a86a04f99d2af0e5a4c3d98dfcf3</sha384>
48+
<sha384>92a8627f90ddaf6efa573162774c82f7bc5628b3a4ee5862e651662e6e5b3c6d6c948793732cdd15d8c850768e3491ab</sha384>
4949
<tags>
5050
<tag>stable</tag>
5151
</tags>

0 commit comments

Comments
 (0)