33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-12-22 10:58:58 +00:00

Prepare the 4.1.0 release

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
Roland Dalmulder 2021-05-02 12:38:00 +02:00
parent 16f3485af2
commit 05929bb408
No known key found for this signature in database
GPG Key ID: 6D30CD38749A5B9E
5 changed files with 21 additions and 15 deletions

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -105,7 +105,7 @@ if (file_exists($rootPath . $manifestFile))
}
// 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']))
@ -114,7 +114,7 @@ if (!isset($opts['exclude-manifest']))
{
$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;

View File

@ -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>
@ -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>