This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
forked from cedricwalter/tor-binary
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
70 lines (66 loc) · 4.56 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0"?>
<project name="tor-binaries" default="checkSignatures">
<property name="project.source.directory" value="tmp"/>
<property name="torbrowser.version" value="9.5.3"/>
<target name="checkSignatures">
<mkdir dir="${project.source.directory}"/>
<parallel>
<get
src="https://dist.torproject.org/torbrowser/${torbrowser.version}/torbrowser-install-${torbrowser.version}_en-US.exe"
dest="${project.source.directory}/torbrowser-install-${torbrowser.version}_en-US.exe"
skipexisting="true"/>
<get
src="https://dist.torproject.org/torbrowser/${torbrowser.version}/torbrowser-install-${torbrowser.version}_en-US.exe.asc"
dest="${project.source.directory}/torbrowser-install-${torbrowser.version}_en-US.exe.asc"
skipexisting="true"/>
<get
src="https://dist.torproject.org/torbrowser/${torbrowser.version}/TorBrowser-${torbrowser.version}-osx64_en-US.dmg"
dest="${project.source.directory}/TorBrowser-${torbrowser.version}-osx64_en-US.dmg"
skipexisting="true"/>
<get
src="https://dist.torproject.org/torbrowser/${torbrowser.version}/TorBrowser-${torbrowser.version}-osx64_en-US.dmg.asc"
dest="${project.source.directory}/TorBrowser-${torbrowser.version}-osx64_en-US.dmg.asc"
skipexisting="true"/>
<get
src="https://dist.torproject.org/torbrowser/${torbrowser.version}/tor-browser-linux32-${torbrowser.version}_en-US.tar.xz"
dest="${project.source.directory}/tor-browser-linux32-${torbrowser.version}_en-US.tar.xz"
skipexisting="true"/>
<get
src="https://dist.torproject.org/torbrowser/${torbrowser.version}/tor-browser-linux32-${torbrowser.version}_en-US.tar.xz.asc"
dest="${project.source.directory}/tor-browser-linux32-${torbrowser.version}_en-US.tar.xz.asc"
skipexisting="true"/>
<get
src="https://dist.torproject.org/torbrowser/${torbrowser.version}/tor-browser-linux64-${torbrowser.version}_en-US.tar.xz"
dest="${project.source.directory}/tor-browser-linux64-${torbrowser.version}_en-US.tar.xz"
skipexisting="true"/>
<get
src="https://dist.torproject.org/torbrowser/${torbrowser.version}/tor-browser-linux64-${torbrowser.version}_en-US.tar.xz.asc"
dest="${project.source.directory}/tor-browser-linux64-${torbrowser.version}_en-US.tar.xz.asc"
skipexisting="true"/>
</parallel>
<parallel>
<exec executable="gpg" failonerror="true">
<arg
line="--auto-key-locate keyserver --keyserver pool.sks-keyservers.net --keyserver-options auto-key-retrieve --verify ${project.source.directory}/torbrowser-install-${torbrowser.version}_en-US.exe.asc ${project.source.directory}/torbrowser-install-${torbrowser.version}_en-US.exe"></arg>
</exec>
<exec executable="gpg" failonerror="true">
<arg
line="--auto-key-locate keyserver --keyserver pool.sks-keyservers.net --keyserver-options auto-key-retrieve --verify ${project.source.directory}/TorBrowser-${torbrowser.version}-osx64_en-US.dmg.asc ${project.source.directory}/TorBrowser-${torbrowser.version}-osx64_en-US.dmg"></arg>
</exec>
<exec executable="gpg" failonerror="true">
<arg
line="--auto-key-locate keyserver --keyserver pool.sks-keyservers.net --keyserver-options auto-key-retrieve --verify ${project.source.directory}/tor-browser-linux32-${torbrowser.version}_en-US.tar.xz.asc ${project.source.directory}/tor-browser-linux32-${torbrowser.version}_en-US.tar.xz"></arg>
</exec>
<exec executable="gpg" failonerror="true">
<arg
line="--auto-key-locate keyserver --keyserver pool.sks-keyservers.net --keyserver-options auto-key-retrieve --verify ${project.source.directory}/tor-browser-linux64-${torbrowser.version}_en-US.tar.xz.asc ${project.source.directory}/tor-browser-linux64-${torbrowser.version}_en-US.tar.xz"></arg>
</exec>
</parallel>
<checksum algorithm="SHA-512" todir="tor-binary-resources/checksums">
<fileset dir="${project.source.directory}">
<exclude name="*.asc"/>
</fileset>
</checksum>
<delete dir="${project.source.directory}"/>
</target>
</project>