-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·34 lines (25 loc) · 943 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0"?>
<project name="checkfox" default="createxpi">
<!--
The version number of CheckFox. This value will be set
within the install.rdf file AND determine the file name of the XPI.
-->
<property name="version" value="0.9.2"/>
<target name="createxpi">
<!-- Set up CheckFox version inside install.rdf file. -->
<copy file="install.rdf.xml" tofile="install.rdf" overwrite="true">
<filterchain>
<replacetokens>
<token key="VERSION" value="${version}" />
</replacetokens>
</filterchain>
</copy>
<!-- Delete XPI if it exists. -->
<delete file="${ant.project.name}-${version}.xpi"/>
<!-- Bundle up the XPI file. -->
<zip destfile="${ant.project.name}-${version}.xpi">
<zipfileset dir="." includes="content/**" prefix="chrome"/>
<zipfileset dir="." includes="install.rdf chrome.manifest" />
</zip>
</target>
</project>