Browse files

ant file for release build

  • Loading branch information...
1 parent 6b3c299 commit 4a4095d8a52318553ef8241daf1e4fddebc34977 @johnjbarton johnjbarton committed Aug 24, 2010
Showing with 13 additions and 16 deletions.
  1. +12 −15 build.xml
  2. +1 −1 update.rdf
View
27 build.xml
@@ -5,7 +5,8 @@
<project name="selectbug" basedir="." default="build">
<!-- Directories -->
- <property name="build.dir" value="release"/>
+ <property name="build.dir" value="../../build"/>
+ <property name="release.dir" value="../../releases"/>
<!-- Properties -->
<property file="ant.properties"/>
@@ -18,16 +19,9 @@
<!-- Build -->
<target name="build" depends="clean">
- <!-- Copy defaults directory -->
- <copy todir="${build.dir}/defaults">
- <fileset dir="defaults">
- <include name="**/*.js"/>
- </fileset>
- </copy>
-
- <!-- Copy chrome directory -->
- <copy todir="${build.dir}/chrome">
- <fileset dir="chrome">
+ <!-- Copy directory -->
+ <copy todir="${build.dir}">
+ <fileset dir=".">
<include name="**/*.js"/>
<include name="**/*.xul"/>
<include name="**/*.properties"/>
@@ -38,7 +32,8 @@
<!-- Copy extension installation files and licence.txt -->
<copy file="chrome.manifest" todir="${build.dir}"/>
<copy file="install.rdf" todir="${build.dir}"/>
- <copy file="update.rdf" todir="${build.dir}"/>
+ <copy file="license.txt" todir="${build.dir}"/>
+ <copy file="update.rdf" todir="${release.dir}"/>
<!-- Update release version from ant.properties file -->
<replace file="${build.dir}/install.rdf" propertyFile="ant.properties">
@@ -47,17 +42,19 @@
</replace>
<!-- Create final selectbug.xpi file -->
- <zip destfile="${build.dir}/eventbug-${VERSION}${RELEASE}.xpi"
+ <zip destfile="${release.dir}/selectbug-${VERSION}${RELEASE}.xpi"
basedir="${build.dir}" update="true" />
<!-- Generate update.rdf file -->
- <replace file="${build.dir}/update.rdf" propertyFile="ant.properties">
+ <replace file="${release.dir}/update.rdf" propertyFile="ant.properties">
<replacefilter token="@VERSION@" property="VERSION"/>
<replacefilter token="@RELEASE@" property="RELEASE"/>
</replace>
+ <delete dir="${build.dir}"/>
+
<!-- Final version message -->
- <echo message="EventBug version: ${VERSION}${RELEASE}"/>
+ <echo message="SelectBug version: ${VERSION}${RELEASE} in ${release.dir}"/>
</target>
</project>
View
2 update.rdf
@@ -12,7 +12,7 @@
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>3.0</em:minVersion>
<em:maxVersion>4.0.*</em:maxVersion>
- <em:updateLink>https://getfirebug.com/releases/selectbug/1.5/selectbug-@VERSION@@RELEASE@.xpi</em:updateLink>
+ <em:updateLink>https://getfirebug.com/releases/selectbug/selectbug-@VERSION@@RELEASE@.xpi</em:updateLink>
</RDF:Description>
</em:targetApplication>
</RDF:Description>

0 comments on commit 4a4095d

Please sign in to comment.