mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
Sign both per-arch JNA .jnilibs in LibreOffice plugin during Mac build
Some checks are pending
Some checks are pending
JNA 5.x ships per-architecture macOS native libraries instead of a single com/sun/jna/darwin/ directory, so the notarization re-signing step failed with "filename not matched". This step can be removed entirely once the plugin ships a jna.jar without the macOS natives, which are never loaded.
This commit is contained in:
parent
f8f83cceac
commit
228799774f
1 changed files with 7 additions and 4 deletions
11
app/build.sh
11
app/build.sh
|
|
@ -773,14 +773,17 @@ if [ $BUILD_MAC == 1 ]; then
|
|||
|
||||
# Sign .jnilib (Java native shared library) within LibreOffice extension, since notarization
|
||||
# started failing without this. The .jnilib is within a .jar within the .oxt, so we have to
|
||||
# extract both, sign the library, and then update each ZIP.
|
||||
# extract both, sign the libraries, and then update each ZIP.
|
||||
#
|
||||
# TODO: Remove this block once the plugin ships a jna.jar without the macOS native
|
||||
# libraries, which are never loaded (JNA is used only on Windows)
|
||||
pushd "$BUILD_DIR"
|
||||
mkdir libreoffice-repack
|
||||
cd libreoffice-repack
|
||||
unzip -q "$APPDIR/Contents/Resources/integration/libreoffice/Zotero_LibreOffice_Integration.oxt" external_jars/jna.jar
|
||||
unzip -q external_jars/jna.jar com/sun/jna/darwin/libjnidispatch.jnilib
|
||||
/usr/bin/codesign --force --options runtime --sign "$DEVELOPER_ID" com/sun/jna/darwin/libjnidispatch.jnilib
|
||||
zip -u external_jars/jna.jar com/sun/jna/darwin/libjnidispatch.jnilib
|
||||
unzip -q external_jars/jna.jar 'com/sun/jna/darwin*/libjnidispatch.jnilib'
|
||||
/usr/bin/codesign --force --options runtime --sign "$DEVELOPER_ID" com/sun/jna/darwin*/libjnidispatch.jnilib
|
||||
zip -u external_jars/jna.jar com/sun/jna/darwin*/libjnidispatch.jnilib
|
||||
zip -u "$APPDIR/Contents/Resources/integration/libreoffice/Zotero_LibreOffice_Integration.oxt" external_jars/jna.jar
|
||||
cd ..
|
||||
rm -rf libreoffice-repack
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue