Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

tor browser with armhf and arm64 support (unofficial binaries) #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
<module>tor-binary-resources</module>
<module>tor-binary-linux32</module>
<module>tor-binary-linux64</module>
<module>tor-binary-linux-armhf</module>
<module>tor-binary-linux-arm64</module>
<module>tor-binary-macos</module>
<module>tor-binary-windows</module>
<module>tor-binary-geoip</module>
Expand Down
75 changes: 75 additions & 0 deletions tor-binary-linux-arm64/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>com.github.JesusMcCloud</groupId>
<artifactId>tor-binary</artifactId>
<version>0.4.1.5</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>tor-binary-linux-arm64</artifactId>
<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<resourceBundles>
<resourceBundle>com.github.JesusMcCloud:tor-binary-resources:${project.version}</resourceBundle>
</resourceBundles>
</configuration>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>download-and-verify</id>
<phase>generate-resources</phase>
<configuration>
<target>
<exec executable="tar" dir="${project.build.directory}" failonerror="true">
<arg value="-xJvf"/>
<arg value="${project.remote-resource.directory}/tor-browser-linux-arm64-${torbrowser.version}_en-US.tar.xz"/>
<arg value="tor-browser_en-US/Browser/TorBrowser/Tor/"/>
</exec>

<delete dir="${project.basedir}/src/" failonerror="false" />
<delete dir="${project.remote-resource.directory}" />

<mkdir dir="${project.basedir}/src/main/resources/native/linux/arm64/"/>
<exec executable="tar" dir="${project.build.directory}/tor-browser_en-US/Browser/TorBrowser/Tor/" failonerror="true">
<arg line="-cJvf ${project.basedir}/src/main/resources/native/linux/arm64/tor.tar.xz ."/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
75 changes: 75 additions & 0 deletions tor-binary-linux-armhf/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>com.github.JesusMcCloud</groupId>
<artifactId>tor-binary</artifactId>
<version>0.4.1.5</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>tor-binary-linux-armhf</artifactId>
<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<resourceBundles>
<resourceBundle>com.github.JesusMcCloud:tor-binary-resources:${project.version}</resourceBundle>
</resourceBundles>
</configuration>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>download-and-verify</id>
<phase>generate-resources</phase>
<configuration>
<target>
<exec executable="tar" dir="${project.build.directory}" failonerror="true">
<arg value="-xJvf"/>
<arg value="${project.remote-resource.directory}/tor-browser-linux-armhf-${torbrowser.version}_en-US.tar.xz"/>
<arg value="tor-browser_en-US/Browser/TorBrowser/Tor/"/>
</exec>

<delete dir="${project.basedir}/src/" failonerror="false" />
<delete dir="${project.remote-resource.directory}" />

<mkdir dir="${project.basedir}/src/main/resources/native/linux/armhf/"/>
<exec executable="tar" dir="${project.build.directory}/tor-browser_en-US/Browser/TorBrowser/Tor/" failonerror="true">
<arg line="-cJvf ${project.basedir}/src/main/resources/native/linux/armhf/tor.tar.xz ."/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
84ec992c6da500e46a0fb120bb42ac50c81bdb0864540b28690600c7f9243b2f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5ce4382927b40b1f41850242260f5c2c3fe796e9e766f8459ed1af9c2284df55
10 changes: 10 additions & 0 deletions tor-binary-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
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://sourceforge.net/projects/tor-browser-ports/files/${torbrowser.version}-armhf/tor-browser-linux-armhf-${torbrowser.version}_en-US.tar.xz/download"
dest="${project.source.directory}/tor-browser-linux-armhf-${torbrowser.version}_en-US.tar.xz"
skipexisting="true"/>
<get
src="https://sourceforge.net/projects/tor-browser-ports/files/${torbrowser.version}-arm64/tor-browser-linux-arm64-${torbrowser.version}_en-US.tar.xz/download"
dest="${project.source.directory}/tor-browser-linux-arm64-${torbrowser.version}_en-US.tar.xz"
skipexisting="true"/>
</parallel>

<copy todir="${project.source.directory}">
Expand All @@ -57,6 +65,8 @@
<checksum algorithm="SHA-512" file="${project.source.directory}/TorBrowser-${torbrowser.version}-osx64_en-US.dmg" />
<checksum algorithm="SHA-512" file="${project.source.directory}/tor-browser-linux32-${torbrowser.version}_en-US.tar.xz" />
<checksum algorithm="SHA-512" file="${project.source.directory}/tor-browser-linux64-${torbrowser.version}_en-US.tar.xz" />
<checksum algorithm="SHA-256" file="${project.source.directory}/tor-browser-linux-armhf-${torbrowser.version}_en-US.tar.xz" />
<checksum algorithm="SHA-256" file="${project.source.directory}/tor-browser-linux-arm64-${torbrowser.version}_en-US.tar.xz" />
</and>
</condition>
<fail unless="checksumsMatch" />
Expand Down