-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
56 lines (46 loc) · 2.19 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
52
53
54
55
56
<?xml version="1.0" encoding="UTF-8"?>
<project name="stormhen" basedir=".">
<dirname property="app.basedir" file="${ant.file.stormhen}"/>
<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..."/>
<delete dir="${tmp.path}\extract2"/>
<move todir="${tmp.path}\extract2">
<fileset dir="${extract.path}\core" defaultexcludes="no">
<exclude name="crashreporter*"/>
<exclude name="maintenanceservice*"/>
<exclude name="updater*"/>
<exclude name="uninstall\**"/>
</fileset>
</move>
<delete dir="${extract.path}"/>
<move todir="${extract.path}">
<fileset dir="${tmp.path}\extract2" defaultexcludes="no"/>
</move>
<echo message="Downloading GnuPG..."/>
<property name="gnupg.file" location="${tmp.path}\gnupg-setup.exe"/>
<get dest="${gnupg.file}" src="${papp.gnupg.url}" skipexisting="false" verbose="on"/>
<echo message="Extracting GnuPG..."/>
<sevenzip-x src="${gnupg.file}" dest="${extract.path}\gnupg"/>
<delete dir="${extract.path}\gnupg\$PLUGINSDIR"/>
<delete file="${extract.path}\gnupg\gnupg-uninstall.exe.nsis"/>
<assertfile file="${extract.path}\gnupg\bin\gpg.exe"/>
<echo message="Downloading additional languages..."/>
<property name="papp.languages.path" location="${extract.path}\langs"/>
<mkdir dir="${papp.languages.path}"/>
<for list="${papp.languages}" param="lang">
<sequential>
<get dest="${papp.languages.path}\@{lang}.xpi" src="https://ftp.mozilla.org/pub/thunderbird/releases/${app.version}/linux-x86_64/xpi/@{lang}.xpi" skipexisting="true"/>
</sequential>
</for>
</target>
</project>