Pier Angelo Vendrame pushed to branch tor-browser-145.0a1-16.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
576980eb
by Pier Angelo Vendrame at 2025-11-26T13:20:27+01:00
1 changed file:
Changes:
| ... | ... | @@ -20,6 +20,12 @@ import org.gradle.api.tasks.Nested |
| 20 | 20 | import org.gradle.api.tasks.OutputFile
|
| 21 | 21 | import org.gradle.api.tasks.TaskAction
|
| 22 | 22 | |
| 23 | +import java.io.File
|
|
| 24 | +import java.nio.file.Files
|
|
| 25 | +import java.nio.file.Path
|
|
| 26 | +import java.nio.file.Paths
|
|
| 27 | +import java.nio.file.StandardCopyOption
|
|
| 28 | + |
|
| 23 | 29 | import javax.inject.Inject
|
| 24 | 30 | |
| 25 | 31 | import groovy.transform.Immutable
|
| ... | ... | @@ -84,6 +90,17 @@ abstract class NimbusAssembleToolsTask extends DefaultTask { |
| 84 | 90 | |
| 85 | 91 | @TaskAction
|
| 86 | 92 | void assembleTools() {
|
| 93 | + String nimbusFml = System.getenv("NIMBUS_FML")
|
|
| 94 | + if (nimbusFml == null || "".equals(nimbusFml)) {
|
|
| 95 | + nimbusFml = System.getProperty("nimbusFml")
|
|
| 96 | + }
|
|
| 97 | + if (nimbusFml != null && !"".equals(nimbusFml)) {
|
|
| 98 | + Path source = (new File(nimbusFml)).toPath()
|
|
| 99 | + Path dest = fmlBinary.get().asFile.toPath()
|
|
| 100 | + Files.copy(source, dest, StandardCopyOption.REPLACE_EXISTING)
|
|
| 101 | + return
|
|
| 102 | + }
|
|
| 103 | + |
|
| 87 | 104 | def sources = [fetchSpec, *fetchSpec.fallbackSources.get()].collect {
|
| 88 | 105 | new Source(new URI(it.archive.get()), new URI(it.hash.get()))
|
| 89 | 106 | }
|