Skip to content

Commit 2578f9c

Browse files
committed
Attempt 2, hand-fixing problematic macOS binary signatures #186
1 parent a34be0f commit 2578f9c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/scripts/build_dmg.zsh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,15 @@ if [ "$IDENTITY_PASSPHRASE" != "" ]; then
3131
# Explode the jar so we can fix code signatures on the problematic executables we embed.
3232
mkdir jar_tmp
3333
cd jar_tmp
34-
jar xf ../"$dmg_name"
35-
rm "$dmg_name"
34+
jar xf ../"$uberjar_name"
3635
codesign --timestamp -s "Deep Symmetry, LLC (9M6LKU948Y)" libnrepl-macos-universal.so
3736
codesign --timestamp -s "Deep Symmetry, LLC (9M6LKU948Y)" META-INF/native/libnetty_transport_native_kqueue_x86_64.jnilib
3837
codesign --timestamp -s "Deep Symmetry, LLC (9M6LKU948Y)" --force uk/co/xfactorylibrarians/coremidi4j/libCoreMidi4J.dylib
3938
codesign --timestamp -s "Deep Symmetry, LLC (9M6LKU948Y)" com/sun/jna/darwin/libjnidispatch.jnilib
4039

4140
# Replace the jar with one containing the executables with corrected signatures.
42-
rm -f ../"$dmg_name"
43-
jar cf ../"$dmg_name" .
41+
rm -f ../"$uberjar_name"
42+
jar cf ../"$uberjar_name" .
4443
cd ..
4544
rm -rf jar_tmp
4645

0 commit comments

Comments
 (0)