Skip to content

Commit

Permalink
Sign native libs before bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Apr 8, 2020
1 parent f2655ff commit 59f0f7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ant/apple/installer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
</antcall>
<!-- Manually sign standalone libs -->
<!--use xargs to loop over and codesign all files-->
<echo message="Signing ${dist.dir}/libs/*.dylib using ${apple.packager.signid}"/>
<echo level="info" message="Signing ${dist.dir}/libs/*.dylib using ${apple.packager.signid}"/>
<exec executable="bash" failonerror="true">
<arg value="-c"/>
<arg value="echo &quot;$(find ${dist.dir}/libs/*.dylib)&quot; |tr ':' '\n' |xargs codesign -s &quot;${apple.packager.signid}&quot; -v"/>
Expand Down
6 changes: 3 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
</target>

<target name="build-jar" depends="compile-socket">
<!-- Apple: Extract, sign, repackage all nested native libs for notarization -->
<antcall target="apple-installer.codesign-jars"/>

<echo level="info">Building Jar for Socket use</echo>
<mkdir dir="${sign.lib.dir}"/>
<jar compress="${jar.compress}" index="${jar.index}" destfile="${dist.dir}/${project.filename}.jar" duplicate="preserve">
Expand All @@ -101,9 +104,6 @@
<antcall target="sign-jar">
<param name="sign.jar.file" value="${dist.dir}/${project.filename}.jar"/>
</antcall>

<!-- Apple: Extract, sign, repackage all nested native libs for notarization -->
<antcall target="apple-installer.codesign-jars"/>
</target>

<!-- install override.crt for "community" branded builds -->
Expand Down

0 comments on commit 59f0f7a

Please sign in to comment.