Skip to content

Commit

Permalink
build-logic: Don't bundle Tor on Linux
Browse files Browse the repository at this point in the history
During Bisq's installation the OS's package manager automatically
installs Tor and its required dependecies.
  • Loading branch information
alvasw committed Oct 19, 2024
1 parent 4c791be commit 246535d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package bisq.gradle.tor_binary

import bisq.gradle.common.OS
import bisq.gradle.common.getOS
import bisq.gradle.tasks.download.SignedBinaryDownloader
import org.gradle.api.Project
import org.gradle.api.file.RegularFile
Expand Down Expand Up @@ -48,6 +50,11 @@ class TorBinaryPackager(private val project: Project, private val torBinaryDownl
from(project.layout.buildDirectory.dir(PROCESSED_DIR))
}

if (getOS() == OS.LINUX) {
// The Bisq package depends on Tor and the OS's package manager installs Tor and its dependencies for us.
return
}

val processResourcesTask = project.tasks.named("processResources")
processResourcesTask.configure {
dependsOn(packageTorBinary)
Expand Down

0 comments on commit 246535d

Please sign in to comment.