From 05929bb408a4c78136c6f4b32799522d8c3010b7 Mon Sep 17 00:00:00 2001 From: Roland Dalmulder Date: Sun, 2 May 2021 12:38:00 +0200 Subject: [PATCH] Prepare the 4.1.0 release Signed-off-by: Roland Dalmulder --- .../components/com_patchtester/patchtester.xml | 4 ++-- build/patchtester/README.md | 6 ++++++ build/patchtester/build.sh | 6 +++--- build/patchtester/release.php | 4 ++-- manifest.xml | 16 ++++++++-------- 5 files changed, 21 insertions(+), 15 deletions(-) create mode 100644 build/patchtester/README.md diff --git a/administrator/components/com_patchtester/patchtester.xml b/administrator/components/com_patchtester/patchtester.xml index c040b38..fcbdcff 100644 --- a/administrator/components/com_patchtester/patchtester.xml +++ b/administrator/components/com_patchtester/patchtester.xml @@ -2,12 +2,12 @@ com_patchtester Joomla! Project - 04-March-2021 + 02-May-2021 (C) 2011 - 2012 Ian MacLennan, (C) 2013 - 2018 Open Source Matters, Inc. All rights reserved. GNU General Public License version 2 or later admin@joomla.org https://www.joomla.org - 4.0.1 + 4.1.0 COM_PATCHTESTER_XML_DESCRIPTION script.php diff --git a/build/patchtester/README.md b/build/patchtester/README.md new file mode 100644 index 0000000..9c7b343 --- /dev/null +++ b/build/patchtester/README.md @@ -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 diff --git a/build/patchtester/build.sh b/build/patchtester/build.sh index e33a28b..cac475d 100755 --- a/build/patchtester/build.sh +++ b/build/patchtester/build.sh @@ -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 diff --git a/build/patchtester/release.php b/build/patchtester/release.php index 2321956..e698249 100644 --- a/build/patchtester/release.php +++ b/build/patchtester/release.php @@ -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('#[^<]*#', 'https://github.com/joomla-extensions/patchtester/releases/tag/' . $version['release'] . '', $fileContents); - $fileContents = preg_replace('#[^<]*#', 'https://github.com/joomla-extensions/patchtester/releases/download/' . $version['release'] . '/com_patchtester.zip', $fileContents); + $fileContents = preg_replace('#[^<]*#', 'https://github.com/joomla-extensions/patchtester/releases/download/' . $version['release'] . '/com_patchtester_' . $version['release'] . '.zip', $fileContents); file_put_contents($rootPath . $updateServerFile, $fileContents); echo '*************' . PHP_EOL; diff --git a/manifest.xml b/manifest.xml index 26756a6..7c50d9d 100644 --- a/manifest.xml +++ b/manifest.xml @@ -22,13 +22,13 @@ Joomla! CMS Patch Tester Component com_patchtester component - 3.0.0-rc + 3.0.0 administrator - https://github.com/joomla-extensions/patchtester/releases/tag/3.0.0.rc + https://github.com/joomla-extensions/patchtester/releases/tag/3.0.0 - https://github.com/joomla-extensions/patchtester/releases/download/3.0.0.rc/com_patchtester.zip + https://github.com/joomla-extensions/patchtester/releases/download/3.0.0/com_patchtester.zip - adb3d5521c136266eb110c42d466578bd4c8e16c4ef1d989aeeb4e383bdaee20a68297e069a0e9273ba918850bdd59a0 + 0cafdeb2cfbe5b509e8c885c8d96098ba52d984fb37693fc753d64c736bfe148d44742fad21bc2bec4b1c9904df1cfd3 rc @@ -39,13 +39,13 @@ Joomla! CMS Patch Tester Component com_patchtester component - 4.0.1 + 4.1.0 administrator - https://github.com/joomla-extensions/patchtester/releases/tag/4.0.1 + https://github.com/joomla-extensions/patchtester/releases/tag/4.1.0 - https://github.com/joomla-extensions/patchtester/releases/download/4.0.1/com_patchtester.zip + https://github.com/joomla-extensions/patchtester/releases/download/4.1.0/com_patchtester_4.1.0.zip - 8e895685840d349f0bd714eebb88a08865ee1fdde4d511624a4baedb7872ed6192c8a86a04f99d2af0e5a4c3d98dfcf3 + 92a8627f90ddaf6efa573162774c82f7bc5628b3a4ee5862e651662e6e5b3c6d6c948793732cdd15d8c850768e3491ab stable