-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
49 lines (42 loc) · 2.06 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="prerequisites" basedir=".">
<dirname property="project.basedir" file="${ant.file.prerequisites}"/>
<property name="root.dir" location="${project.basedir}/.."/>
<property name="build.properties" value="${project.basedir}/build.properties"/>
<property file="${build.properties}"/>
<!-- bearsampp dev -->
<property name="dev.path" location="${root.dir}/dev"/>
<fail unless="dev.path" message="Project 'dev' not found in ${dev.path}"/>
<echo message="Bearsampp dev found in ${dev.path}" level="debug"/>
<!-- Import build-commons.xml -->
<import file="${dev.path}/build/build-commons.xml"/>
<target name="release" depends="init, load.lib">
<property name="prerequisites.src" location="${project.basedir}/src"/>
<property name="prerequisites.setup" location="${project.basedir}/setup"/>
<property name="prerequisites.tmp" location="${build.tmp.path}/prerequisites"/>
<property name="prerequisites.dest" location="${build.path}/prerequisites"/>
<echo message="Copying files"/>
<delete dir="${prerequisites.tmp}"/>
<mkdir dir="${prerequisites.tmp}"/>
<copy todir="${prerequisites.tmp}/src">
<fileset dir="${prerequisites.src}"/>
</copy>
<copy todir="${prerequisites.tmp}">
<fileset dir="${prerequisites.setup}"/>
</copy>
<copy file="${prerequisites.setup}/setup.iss" tofile="${prerequisites.tmp}/setup.iss" overwrite="true">
<filterset>
<filter token="PREREQ_RELEASE" value="${prerequisites.release}"/>
<filter token="PREREQ_ID" value="${prerequisites.id}"/>
<filter token="PREREQ_NAME" value="${prerequisites.name}"/>
</filterset>
</copy>
<echo message="Build setup"/>
<exec executable="${innosetup.path}/app/ISCC.exe" dir="${prerequisites.tmp}" failonerror="true">
<arg value="/O${prerequisites.dest}"/>
<arg value="/F${prerequisites.setupname}"/>
<arg value="${prerequisites.tmp}/setup.iss"/>
</exec>
<hashfile file="${prerequisites.dest}/${prerequisites.setupname}.exe"/>
</target>
</project>