This repository has been archived by the owner on Nov 5, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.xml
51 lines (40 loc) · 2.05 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="docker-toolbox" basedir=".">
<dirname property="app.basedir" file="${ant.file.docker-toolbox}"/>
<property name="build.properties" value="${app.basedir}/build.properties"/>
<property file="${build.properties}"/>
<!-- Load Portapps core build -->
<property name="core.basedir" location="${app.basedir}\${core.dir}"/>
<fail unless="core.basedir" message="Core directory '${core.basedir}' not found in ${core.basedir}"/>
<echo message="Core found in ${core.basedir}" level="debug"/>
<!-- Import build-app.xml -->
<import file="${core.basedir}\.build\build-app.xml"/>
<!-- Targets -->
<target name="release" depends="release.app" description="Release"/>
<target name="prepare">
<echo message="Preparing release..."/>
<property name="extract.path2" value="${tmp.path}\extract2"/>
<move todir="${tmp.path}\extract2">
<fileset dir="${extract.path}\${innosetup.app}" defaultexcludes="no">
<exclude name="installers/**"/>
<exclude name="kitematic/**"/>
</fileset>
</move>
<echo message="Downloading Git ${papp.git.version}..."/>
<property name="papp.git.file" location="${tmp.path}\PortableGit-${papp.git.version}.7z.exe"/>
<get dest="${papp.git.file}" src="${papp.git.url}" skipexisting="false" verbose="on"/>
<echo message="Extracting Git..."/>
<sevenzip-ax src="${papp.git.file}" dest="${extract.path2}\git"/>
<echo message="Updating post-install.bat for Git..."/>
<assertfile file="${extract.path2}\git\post-install.bat"/>
<replace file="${extract.path2}\git\post-install.bat" failOnNoReplacements="true">
<replacefilter token="@DEL post-install.bat" value="@REM @DEL post-install.bat"/>
</replace>
<echo message="Copying custom start.sh"/>
<copy file="${res.path}\start.sh" todir="${extract.path2}" overwrite="true"/>
<delete dir="${extract.path}\${innosetup.app}"/>
<move todir="${extract.path}\${innosetup.app}">
<fileset dir="${extract.path2}" defaultexcludes="no"/>
</move>
</target>
</project>