forked from kgshank/gse-disconnect-wifi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
22 lines (22 loc) · 894 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE xml>
<project default="create_zip" name="Package Extension">
<property name="extension.uid" value="[email protected]" />
<property name="dir.workspace" location="."/>
<property name="dir.target.dir" location="${dir.workspace}/dist/"/>
<property name="project-dir" location="${dir.workspace}/${extension.uid}"/>
<target name="create_dist">
<mkdir dir="${dir.target.dir}" />
</target>
<target name="compile-schema">
<exec executable="glib-compile-schemas">
<arg path="${project-dir}/schemas"/>
</exec>
</target>
<target name="create_zip" depends="create_dist,compile-schema">
<echo message="Creating file ${extension.uid}.zip"/>
<zip destfile="${dir.target.dir}/${extension.uid}.zip" >
<fileset dir="${project-dir}" excludes="**/*.pyc,**/__pycache__,**/*.po*,po"/>
</zip>
</target>
</project>