-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
41 lines (35 loc) · 1.3 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
<project name="Sokoban" default="build">
<property name="game_src" value="${basedir}/brick_game"></property>
<property name="chrome_ext" value="${basedir}/chrome_ext"></property>
<property name="chrome_zip" value="${basedir}/chrome_ext.zip"></property>
<!-- create the folder for the chrome extension -->
<target name="build" description="creates the folder as required by the chrome extension">
<delete dir="${chrome_ext}" />
<mkdir dir="${chrome_ext}" />
<!-- copy all required stuffs/folders from the chrome_folder. -->
<copy todir="${chrome_ext}" >
<fileset dir="${game_src}" >
<!-- copy manifest files -->
<include name="main.js" />
<include name="manifest.json" />
<!-- copy only necessary folders/sub-folders recursively -->
<include name="html/**" />
<include name="js/**" />
<include name="css/**" />
<include name="font/**" />
<include name="images/**" />
<include name="lib/**" />
</fileset>
</copy>
</target>
<target name="zip" depends="build"
description="Builds a zip for the chrome extension folder as required for publishing the app.">
<zip destfile="${chrome_zip}">
<fileset dir="${chrome_ext}" />
</zip>
</target>
<target name="clean" >
<delete dir="${chrome_ext}" />
<delete file="${chrome_zip}" />
</target>
</project>