File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -79,23 +79,22 @@ function signExecutableInsideJar2() {
79
79
80
80
function signExecutableInsideNestedJar() {
81
81
local pwd=` pwd`
82
- for f in ` find $1 -type f | grep -E $2 `
82
+ for jar_file in ` find $1 -type f | grep -E $2 `
83
83
do
84
- local f_name=" $( basename -- $f ) "
84
+ local f_name=" $( basename -- $jar_file ) "
85
85
local extracted_jar_dir=extracted_${f_name}
86
86
rm -rf $extracted_jar_dir
87
87
mkdir $extracted_jar_dir
88
- echo " Extracting archive ${f } "
89
- unzip -q $f -d ./${extracted_jar_dir}
88
+ echo " Extracting archive ${jar_file } "
89
+ unzip -q $jar_file -d ./${extracted_jar_dir}
90
90
signExecutableInsideJar2 $extracted_jar_dir $3 $4 $5
91
- pwd
92
- ls
93
91
cd $extracted_jar_dir
94
- zip -r -u ../$f .
92
+ ls
93
+ zip -r -u ../$jar_file .
95
94
cd ..
96
95
rm -rf $extracted_jar_dir
97
- echo " Signing binary file: ${f } "
98
- codesign --verbose --deep --force --timestamp --entitlements " ${entitlements} " --options=runtime --keychain " ${KEYCHAIN} " -s " ${MACOS_CERTIFICATE_ID} " $f
96
+ echo " Signing binary file: ${jar_file } "
97
+ codesign --verbose --deep --force --timestamp --entitlements " ${entitlements} " --options=runtime --keychain " ${KEYCHAIN} " -s " ${MACOS_CERTIFICATE_ID} " $jar_file
99
98
done
100
99
cd $pwd
101
100
}
You can’t perform that action at this time.
0 commit comments