Skip to content

Commit

Permalink
Increase timeout for codesign process (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr authored Jan 16, 2025
1 parent 0515389 commit 20a0fbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/gluonhq/substrate/util/ios/CodeSigning.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2024, Gluon
* Copyright (c) 2019, 2025, Gluon
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -322,7 +322,7 @@ private boolean unlockKeychain() throws IOException, InterruptedException {
public static boolean verifyCodesign(Path target) throws IOException, InterruptedException {
Logger.logDebug("Validating codesign...");
ProcessRunner runner = new ProcessRunner("codesign", "--verify", "-vvvv", target.toAbsolutePath().toString());
if (runner.runTimedProcess("verify", 5)) {
if (runner.runTimedProcess("verify", 30)) {
return runner.getResponses().stream()
.anyMatch(line -> line.contains(CODESIGN_OK_1) ||
line.contains(CODESIGN_OK_2) || line.contains(CODESIGN_OK_3));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2024, Gluon
* Copyright (c) 2019, 2025, Gluon
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -270,7 +270,7 @@ private boolean unlockKeychain() throws IOException, InterruptedException {
private boolean verifyCodesign(Path target) throws IOException, InterruptedException {
Logger.logDebug("Validating codesign...");
ProcessRunner runner = new ProcessRunner("codesign", "--verify", "-vvvv", target.toAbsolutePath().toString());
if (runner.runTimedProcess("verify", 5)) {
if (runner.runTimedProcess("verify", 30)) {
return runner.getResponses().stream()
.anyMatch(line -> line.contains(CODESIGN_OK_1) ||
line.contains(CODESIGN_OK_2) || line.contains(CODESIGN_OK_3));
Expand Down

0 comments on commit 20a0fbb

Please sign in to comment.