25
25
package jdk .jpackage .internal ;
26
26
27
27
import static java .util .stream .Collectors .joining ;
28
- import static java .util .stream .Collectors .toSet ;
29
28
import static jdk .jpackage .internal .util .function .ThrowingConsumer .toConsumer ;
30
29
31
30
import java .io .IOException ;
42
41
import java .util .stream .Stream ;
43
42
import jdk .jpackage .internal .Codesign .CodesignException ;
44
43
import jdk .jpackage .internal .model .Application ;
45
- import jdk .jpackage .internal .model .ApplicationLayout ;
46
- import jdk .jpackage .internal .model .Launcher ;
47
44
import jdk .jpackage .internal .model .MacApplication ;
48
45
import jdk .jpackage .internal .util .PathUtils ;
49
46
import jdk .jpackage .internal .util .function .ExceptionBox ;
@@ -76,12 +73,6 @@ static final class SignFilter implements Predicate<Path> {
76
73
77
74
SignFilter (Application app , Path appImage ) {
78
75
Objects .requireNonNull (appImage );
79
-
80
- launchers = app .asApplicationLayout ().map (appLayout -> {
81
- return appLayout .resolveAt (appImage );
82
- }).map (ApplicationLayout ::launchersDirectory ).map (launchersDir -> {
83
- return app .launchers ().stream ().map (Launcher ::executableNameWithSuffix ).map (launchersDir ::resolve ).collect (toSet ());
84
- }).orElseGet (Set ::of );
85
76
}
86
77
87
78
@ Override
@@ -91,7 +82,7 @@ public boolean test(Path path) {
91
82
}
92
83
93
84
if (Files .isExecutable (path ) || path .getFileName ().toString ().endsWith (".dylib" )) {
94
- if (path .toString ().contains ("dylib.dSYM/Contents" ) || launchers . contains ( path ) ) {
85
+ if (path .toString ().contains ("dylib.dSYM/Contents" )) {
95
86
return false ;
96
87
}
97
88
@@ -100,8 +91,6 @@ public boolean test(Path path) {
100
91
101
92
return false ;
102
93
}
103
-
104
- private final Set <Path > launchers ;
105
94
}
106
95
107
96
private void sign (MacApplication app , Path appImage ) throws CodesignException , IOException {
0 commit comments