Skip to content

Commit

Permalink
Prepare the 4.1.0 release
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Dalmulder <contact@rolandd.com>
  • Loading branch information
roland-d committed May 2, 2021
1 parent 16f3485 commit 05929bb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 15 deletions.
4 changes: 2 additions & 2 deletions administrator/components/com_patchtester/patchtester.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension type="component" version="4.0" method="upgrade">
<name>com_patchtester</name>
<author>Joomla! Project</author>
<creationDate>04-March-2021</creationDate>
<creationDate>02-May-2021</creationDate>
<copyright>(C) 2011 - 2012 Ian MacLennan, (C) 2013 - 2018 Open Source Matters, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>https://www.joomla.org</authorUrl>
<version>4.0.1</version>
<version>4.1.0</version>
<description>COM_PATCHTESTER_XML_DESCRIPTION</description>
<scriptfile>script.php</scriptfile>
<install>
Expand Down
6 changes: 6 additions & 0 deletions build/patchtester/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Creating a release
1. Run the `release.php -v=x.x.x` with the new version number
2. Rever the changes in the `manifest.xml` that are not related to the release
2. Run the `build.sh x.x.x` with the new version number
3. Copy the SHA384 from the `checksums.json` file to the `manifest.xml`
4. Upload the generated files to the Github release
6 changes: 3 additions & 3 deletions build/patchtester/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ rm -rf build/packaging/admin/backups/*.txt
mv build/packaging/admin/patchtester.xml build/packaging/patchtester.xml
mv build/packaging/admin/script.php build/packaging/script.php
cd build/packaging
tar jcf ../packages/com_patchtester.tar.bz2 .
tar zcf ../packages/com_patchtester.tar.gz .
zip -r ../packages/com_patchtester.zip .
tar jcf ../packages/com_patchtester_"$1".tar.bz2 .
tar zcf ../packages/com_patchtester_"$1".tar.gz .
zip -r ../packages/com_patchtester_"$1".zip .
cd ../../
composer install
php build/patchtester/hash_generator.php
4 changes: 2 additions & 2 deletions build/patchtester/release.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function usage($command)
}

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

// If not instructed to exclude it, update the update server's manifest
if (!isset($opts['exclude-manifest']))
Expand All @@ -114,7 +114,7 @@ function usage($command)
{
$fileContents = file_get_contents($rootPath . $updateServerFile);
$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);
$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);
$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);
file_put_contents($rootPath . $updateServerFile, $fileContents);

echo '*************' . PHP_EOL;
Expand Down
16 changes: 8 additions & 8 deletions manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
<description>Joomla! CMS Patch Tester Component</description>
<element>com_patchtester</element>
<type>component</type>
<version>3.0.0-rc</version>
<version>3.0.0</version>
<client>administrator</client>
<infourl title="Patch Tester Component">https://github.com/joomla-extensions/patchtester/releases/tag/3.0.0.rc</infourl>
<infourl title="Patch Tester Component">https://github.com/joomla-extensions/patchtester/releases/tag/3.0.0</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/joomla-extensions/patchtester/releases/download/3.0.0.rc/com_patchtester.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/joomla-extensions/patchtester/releases/download/3.0.0/com_patchtester.zip</downloadurl>
</downloads>
<sha384>adb3d5521c136266eb110c42d466578bd4c8e16c4ef1d989aeeb4e383bdaee20a68297e069a0e9273ba918850bdd59a0</sha384>
<sha384>0cafdeb2cfbe5b509e8c885c8d96098ba52d984fb37693fc753d64c736bfe148d44742fad21bc2bec4b1c9904df1cfd3</sha384>
<tags>
<tag>rc</tag>
</tags>
Expand All @@ -39,13 +39,13 @@
<description>Joomla! CMS Patch Tester Component</description>
<element>com_patchtester</element>
<type>component</type>
<version>4.0.1</version>
<version>4.1.0</version>
<client>administrator</client>
<infourl title="Patch Tester Component">https://github.com/joomla-extensions/patchtester/releases/tag/4.0.1</infourl>
<infourl title="Patch Tester Component">https://github.com/joomla-extensions/patchtester/releases/tag/4.1.0</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/joomla-extensions/patchtester/releases/download/4.0.1/com_patchtester.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/joomla-extensions/patchtester/releases/download/4.1.0/com_patchtester_4.1.0.zip</downloadurl>
</downloads>
<sha384>8e895685840d349f0bd714eebb88a08865ee1fdde4d511624a4baedb7872ed6192c8a86a04f99d2af0e5a4c3d98dfcf3</sha384>
<sha384>92a8627f90ddaf6efa573162774c82f7bc5628b3a4ee5862e651662e6e5b3c6d6c948793732cdd15d8c850768e3491ab</sha384>
<tags>
<tag>stable</tag>
</tags>
Expand Down

0 comments on commit 05929bb

Please sign in to comment.