-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.xml
41 lines (33 loc) · 1.4 KB
/
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
35
36
37
38
39
40
41
<?xml version="1.0"?>
<project name="extensionBuilder" default="buildExtension">
<target name="setProperties">
<exec executable="../getprojectname.sh" outputproperty="projectName"/>
<exec executable="../getcurrentversion.sh" outputproperty="currentVersion"/>
</target>
<target name="deleteXPI" depends="setProperties">
<delete>
<fileset dir="." includes="${projectName}*.xpi"/>
</delete>
</target>
<target name="createJAR" depends="deleteXPI">
<zip destfile="${projectName}.jar">
<zipfileset dir="." includes="content/**"/>
<zipfileset dir="." includes="locale/**"/>
<zipfileset dir="." includes="skin/**"/>
</zip>
</target>
<target name="createXPI" depends="createJAR">
<zip destfile="${projectName}${currentVersion}.xpi">
<zipfileset dir="." includes="${projectName}.jar" prefix="chrome"/>
<zipfileset dir="." includes="defaults/**"/>
<zipfileset dir="." includes="icons/**"/>
<zipfileset dir="." includes="install.rdf"/>
<zipfileset dir="." includes="chrome.manifest"/>
<zipfileset dir="." includes="manifest.json"/>
</zip>
</target>
<target name="deleteJAR" depends="createXPI">
<delete file="${projectName}.jar"/>
</target>
<target name="buildExtension" depends="deleteJAR"/>
</project>