Skip to content

Commit

Permalink
Merge pull request #547 from alvasw/gradle_electrum_do_not_package_dm…
Browse files Browse the repository at this point in the history
…g_file

Electrum: Don't package DMG image
  • Loading branch information
alvasw authored Nov 13, 2022
2 parents 1a3445a + b19a86b commit 54dc352
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ abstract class VerifyElectrumBinariesTask : DefaultTask() {
throw GradleException("Signature verification failed for $filename.")
}

val targetPath = outputDir.resolve(filename).toPath()
Files.move(fileToVerify.toPath(), targetPath, StandardCopyOption.REPLACE_EXISTING)
if (!filename.endsWith(".dmg")) {
val targetPath = outputDir.resolve(filename).toPath()
Files.move(fileToVerify.toPath(), targetPath, StandardCopyOption.REPLACE_EXISTING)
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
public class ElectrumBinaryExtractor {

public static final String LINUX_BINARY_SUFFIX = "AppImage";
public static final String MAC_OS_BINARY_SUFFIX = "dmg";
public static final String WINDOWS_BINARY_SUFFIX = "exe";

private static final String ARCHIVE_FILENAME = "electrum-binaries.zip";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public ElectrumBinaryExtractorTest() throws IOException {
@ParameterizedTest
@ValueSource(strings = {
ElectrumBinaryExtractor.LINUX_BINARY_SUFFIX,
ElectrumBinaryExtractor.MAC_OS_BINARY_SUFFIX,
ElectrumBinaryExtractor.WINDOWS_BINARY_SUFFIX
})
void extractBinaries(String binarySuffix) {
Expand Down

0 comments on commit 54dc352

Please sign in to comment.