forked from anekos/Ank-Pixiv-Tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
34 lines (29 loc) · 935 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="Ank-Pixiv-Tool" default="dist">
<property name="src.dir" value="source" />
<property name="dist.dir" value="dist" />
<property name="app.name" value="ank_pixiv_tool" />
<property name="app.id" value="${app.name}" /> <!-- extension id like: [email protected] -->
<property name="ff.dir" value="D:\Program Files (x86)\Mozilla Firefox" />
<condition property="ff.present">
<and>
<isset property="ff.dir" />
<available file="${ff.dir}" type="dir" />
</and>
</condition>
<target name="dist">
<zip destfile="${dist.dir}/${app.name}.xpi">
<fileset dir="${src.dir}">
<include name="chrome/**" />
<include name="chrome.manifest" />
<include name="install.rdf" />
<include name="defaults/**" />
<exclude name="**/.*" />
<exclude name="**/CVS/**" />
</fileset>
</zip>
</target>
<target name="clean">
<delete dir="${dist.dir}" />
</target>
</project>