Skip to content

Commit 54cca8c

Browse files
author
Nicholas K. Dionysopoulos
committed
Adding project management tasks to allow FOF updates through Joomla!'s integrated extensions updater
1 parent 3ce79a4 commit 54cca8c

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ tests/unit/config.php
1313

1414
=======
1515
>>>>>>> refs/heads/staging
16-
/build/build.properties
16+
/build/build.properties
17+
/build/templates/release.json

build/build.xml

+18-1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,23 @@
147147
<include name="lib_*.zip"/>
148148
</fileset>
149149
</ftpdeploy>
150-
</target>
150+
</target>
151+
152+
<target name="release" depends="setup-properties" description="Upload the release to AkeebaBackup.com">
153+
<copy file="./templates/release.json" tofile="${dirs.root}/release.json" overwrite="true">
154+
<filterchain id="standard-tokens">
155+
<replacetokens begintoken="##" endtoken="##">
156+
<token key="DATE" value="${build.date}" />
157+
<token key="VERSION" value="${version}" />
158+
<token key="RELEASEDIR" value="${phing.dir}/${dirs.release}" />
159+
<token key="REPODIR" value="${phing.dir}/${dirs.root}" />
160+
</replacetokens>
161+
</filterchain>
162+
</copy>
163+
164+
<exec command="php ${project.basedir}/../../releasemaker/releasemaker/index.php ${project.basedir}/../release.json" dir="${project.basedir}" passthru="true" />
165+
166+
<delete file="${dirs.root}/release.json" quiet="yes" />
167+
</target>
151168

152169
</project>

build/templates/lib_fof.xml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<extension type="library" version="2.5" method="upgrade">
3-
<name>FoF</name>
3+
<name>FOF</name>
44
<libraryname>fof</libraryname>
55
<description>Framework-on-Framework (FOF) - A rapid component development framework for Joomla!</description>
66
<creationDate>##DATE##</creationDate>
@@ -11,7 +11,8 @@
1111
<license>GNU GPLv2 or later</license>
1212
<version>##VERSION##</version>
1313
<packager>Akeeba Ltd</packager>
14-
<packagerurl>https://www.AkeebaBackup.com</packagerurl>
14+
<packagerurl>https://www.AkeebaBackup.com/download.html</packagerurl>
15+
1516
<files folder="fof">
1617
<folder>controller</folder>
1718
<folder>dispatcher</folder>
@@ -34,4 +35,8 @@
3435
<file>index.html</file>
3536
<file>version.txt</file>
3637
</files>
38+
39+
<updateservers>
40+
<server type="extension" priority="1" name="FOF Updates (official releases)">http://cdn.akeebabackup.com/updates/fof.xml</server>
41+
</updateservers>
3742
</extension>

0 commit comments

Comments
 (0)