Skip to content

Commit 3e10dc0

Browse files
committed
codesign fixes
1 parent efd646a commit 3e10dc0

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/workflows/apx-gcs-release.yml

+10
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,16 @@ jobs:
132132
run: |
133133
make release-package
134134
135+
- name: Notarize package
136+
env:
137+
NOTARIZATION_API_KEY_ID: ${{ secrets.NOTARIZATION_API_KEY_ID }}
138+
NOTARIZATION_API_KEY: ${{ secrets.NOTARIZATION_API_KEY }}
139+
NOTARIZATION_API_ISSUER: ${{ secrets.NOTARIZATION_API_ISSUER }}
140+
run: |
141+
echo $NOTARIZATION_API_KEY | base64 --decode > notarization_api_key
142+
xcrun notarytool submit ${{ env.BUILD_DIR }}/deploy/*.dmg --key notarization_api_key --key-id $NOTARIZATION_API_KEY_ID --issuer $NOTARIZATION_API_ISSUER --wait
143+
xcrun stapler staple ${{ env.BUILD_DIR }}/deploy/*.dmg
144+
135145
- name: Upload artifacts
136146
uses: actions/upload-artifact@v4
137147
with:

cmake/apx_gcs_deploy.cmake

+13-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,22 @@ add_custom_target(
5555
add_custom_target(bundle DEPENDS deploy_libs)
5656

5757
if(APPLE)
58+
set(codesign_cmd
59+
codesign
60+
--deep
61+
--force
62+
--options
63+
runtime
64+
-s
65+
$ENV{CODE_IDENTITY}
66+
)
5867
add_custom_target(
5968
deploy_sign
60-
COMMAND codesign --deep --force -s $ENV{CODE_IDENTITY} ${APX_INSTALL_APP_DIR}
69+
COMMAND ${codesign_cmd} ${APX_INSTALL_DATA_DIR}/xplane/ApxSIL_Darwin_universal.xpl
70+
COMMAND ${codesign_cmd} ${APX_INSTALL_BIN_DIR}/gcs
71+
COMMAND ${codesign_cmd} ${APX_INSTALL_APP_DIR}
6172
COMMENT "Signing app with $ENV{CODE_IDENTITY}"
62-
DEPENDS deploy_libs
73+
# DEPENDS deploy_libs
6374
WORKING_DIRECTORY ${APX_DEPLOY_DIR}
6475
VERBATIM USES_TERMINAL
6576
)

0 commit comments

Comments
 (0)