UPD depot xml, zipdepot script
This commit is contained in:
@ -2,12 +2,12 @@
|
||||
<extension type="component" method="upgrade">
|
||||
<name>Depot</name>
|
||||
<author>KW4NZ</author>
|
||||
<creationDate>2024-08-31</creationDate>
|
||||
<creationDate>2024-10-21</creationDate>
|
||||
<copyright>(C) KW4NZ Thomas Kuschel</copyright>
|
||||
<license>GPL v2 +; see LICENSE.md</license>
|
||||
<authorEmail>thomas@kuschel.at</authorEmail>
|
||||
<authorUrl>https://kuschel.at</authorUrl>
|
||||
<version>0.9.23</version>
|
||||
<version>0.9.24</version>
|
||||
<description>COM_DEPOT_XML_DESCRIPTION</description>
|
||||
<namespace path="src/">KW4NZ\Component\Depot</namespace>
|
||||
<!-- Runs on install/uninstall/update since 2.5 -->
|
||||
@ -73,4 +73,7 @@
|
||||
<language tag="de-DE">de-DE/com_depot.sys.ini</language>
|
||||
</languages>
|
||||
</administration>
|
||||
<updateservers>
|
||||
<server type="extension" priority="1" name="KW4NZ's Joomla Updates">https://kuschel.at/update/extensions.xml</server>
|
||||
</updateservers>
|
||||
</extension>
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
|
||||
|
BIN
zip/depot.zip
(Stored with Git LFS)
BIN
zip/depot.zip
(Stored with Git LFS)
Binary file not shown.
1
zip/depot.zip.sha512
Normal file
1
zip/depot.zip.sha512
Normal file
@ -0,0 +1 @@
|
||||
e63c8b4203b6fdc69f51f3d963fa44231a5df2b5e1f2a2a230856a97d62a7e11f852c274c3b9ac7145cb45cf57e4c59b8906c016bcb339c75137c830df5eba35 zip/depot.zip
|
Reference in New Issue
Block a user