This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.xml
71 lines (63 loc) · 2.07 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" ?>
<project name="FireMobileSimulator" default="dist">
<property name="src.dir" value="src"/>
<property name="dist.dir" value="dist"/>
<property name="app.name" value="FireMobileSimulator"/>
<property name="app.code" value="msim"/>
<property name="app.id" value="{77cc852e-6b45-11dd-929f-d30256d89593}"/>
<property file="build.properties"/>
<condition property="fx.present">
<and>
<isset property="fx.dir"/>
<available file="${fx.dir}" type="dir"/>
</and>
</condition>
<target name="chrome">
<mkdir dir="${dist.dir}"/>
<mkdir dir="${dist.dir}/chrome"/>
<zip destfile="${dist.dir}/chrome/${app.code}.jar">
<fileset dir="${src.dir}/chrome">
<include name="content/**"/>
<include name="locale/**"/>
<include name="skin/**"/>
<exclude name="**/Thumbs.db"/>
<exclude name="**/.*"/>
<exclude name="**/CVS/**"/>
</fileset>
</zip>
</target>
<target name="dist" depends="chrome">
<zip destfile="${dist.dir}/${app.name}.xpi">
<zipfileset file="${dist.dir}/chrome/${app.code}.jar" prefix="chrome"/>
<fileset dir="${src.dir}">
<include name="chrome.manifest"/>
<include name="install.rdf"/>
<include name="license.txt"/>
<include name="defaults/**"/>
<include name="components/**"/>
<exclude name="**/.*"/>
<exclude name="**/CVS/**"/>
</fileset>
</zip>
</target>
<target name="install" depends="dist" if="fx.present">
<copy file="${dist.dir}/chrome/${app.code}.jar" todir="${fx.dir}/${app.id}/chrome"/>
<copy todir="${fx.dir}/${app.id}">
<fileset dir="${src.dir}">
<include name="chrome.manifest"/>
<include name="install.rdf"/>
<include name="license.txt"/>
<include name="defaults/**"/>
<include name="components/**"/>
<exclude name="**/.*"/>
<exclude name="**/CVS/**"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="${dist.dir}"/>
</target>
<target name="uninstall" if="fx.present">
<delete dir="${fx.dir}/${app.id}" failonerror="false"/>
</target>
</project>