diff --git a/depot.xml b/depot.xml index c8e5e2e..12f6bbe 100644 --- a/depot.xml +++ b/depot.xml @@ -2,12 +2,12 @@ Depot KW4NZ - 2024-08-31 + 2024-10-21 (C) KW4NZ Thomas Kuschel GPL v2 +; see LICENSE.md thomas@kuschel.at https://kuschel.at - 0.9.23 + 0.9.24 COM_DEPOT_XML_DESCRIPTION KW4NZ\Component\Depot @@ -73,4 +73,7 @@ de-DE/com_depot.sys.ini + + https://kuschel.at/update/extensions.xml + diff --git a/script.php b/script.php index f46957d..ed73a7b 100644 --- a/script.php +++ b/script.php @@ -29,8 +29,8 @@ use Joomla\CMS\Installer\InstallerScriptInterface; use Joomla\CMS\Language\Text; return new class() implements InstallerScriptInterface { - private string $minimumJoomla = '4.4.8'; // '5.1.4' - private string $minimumPhp = '8.1.29'; + private string $minimumJoomla = '5.1.4'; + private string $minimumPhp = '8.1.30'; public function install(InstallerAdapter $adapter): bool { diff --git a/script/zipdepot b/script/zipdepot index a36a535..1097070 100755 --- a/script/zipdepot +++ b/script/zipdepot @@ -2,6 +2,11 @@ # Joomla installation at: JOOMLADIR="/srv/http/joomla5" +UPDATESERVER="kuschel.at" +# the following host must be given in .ssh/config configuration: +UPDATESERVERSSH="kuschel" +UPDATEDIR="/var/www/kuschel.at/update" +UPDATEFILE="extensions.xml" # this is a script file to generate a zip package from this source: cd "$(dirname "$0")" @@ -42,6 +47,31 @@ fi mkdir -p zip # Generate ZIP file without directories zip, script zip -q -r zip/depot.zip * -x .git/\* -x script/\* -x zip/\* +# Make a copy of the ZIP file with version added: + +## get the version from depot.xml, again: +version=`xmllint -xpath 'string(//*[local-name()="version"])' depot.xml` +major=`echo "$version" | cut -f1 -d.` +minor=`echo "$version" | cut -f2 -d.` +patch=`echo "$version" | cut -f3 -d.` +echo "Now the version is: ${version}" +cp -f zip/depot.zip "zip/depot_${version}.zip" +echo "Create sha512 checksum" +sha512sum zip/depot.zip | tee zip/depot.zip.sha512 + +read -p "Do you want to upload the zip file to the update server \"https://kuschel.at/update\"? (y/N)" -n 1 -r +echo # (optional) move to a new line +if [[ $REPLY =~ ^[YyJj]$ ]] +then + echo "Uploading to the update server" + scp "zip/depot_${version}.zip" ${UPDATESERVERSSH}:${UPDATEDIR}/ + echo "Create sha512 checksum" + sha512sum "zip/depot_${version}.zip" | tee "zip/depot_${version}.zip.sha512" + scp "zip/depot_${version}.zip.sha512" ${UPDATESERVERSSH}:${UPDATEDIR}/ + echo "Now you have to edit the extensions.xml on the update server manually." +else + echo "nothing to do" +fi # Install this extension to the active Joomla installation per CLI diff --git a/zip/depot.zip b/zip/depot.zip index aba7d27..c8acdcd 100644 --- a/zip/depot.zip +++ b/zip/depot.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:98e54fa057436193f3ee4362796c66c897bc829111b8b58d6cab03f5f80ea348 -size 89258 +oid sha256:14d8b5976c1b0a837951c192917ede8427d4fe5fa4063c71b166c51ceeb6a49b +size 89345 diff --git a/zip/depot.zip.sha512 b/zip/depot.zip.sha512 new file mode 100644 index 0000000..d8e84e7 --- /dev/null +++ b/zip/depot.zip.sha512 @@ -0,0 +1 @@ +e63c8b4203b6fdc69f51f3d963fa44231a5df2b5e1f2a2a230856a97d62a7e11f852c274c3b9ac7145cb45cf57e4c59b8906c016bcb339c75137c830df5eba35 zip/depot.zip