Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(deps): attempt to resolve issue created due to https://github.com/Apple-Actions/import-codesign-certs/issues/71
perf3ct18e652719110
diff --git a/.github/actions/build-electron/action.yml b/.github/actions/build-electron/action.ymlindex a2f0706008..5ca07d5197 100644--- a/.github/actions/build-electron/action.yml+++ b/.github/actions/build-electron/action.yml@@ -25,7 +25,7 @@ runs:with:p12-file-base64: ${{ env.APPLE_APP_CERTIFICATE_BASE64 }}p12-password: ${{ env.APPLE_APP_CERTIFICATE_PASSWORD }}- keychain: build+ keychain: build-appkeychain-password: ${{ github.run_id }}- name: Install Installer certificate@@ -34,17 +34,19 @@ runs:with:p12-file-base64: ${{ env.APPLE_INSTALLER_CERTIFICATE_BASE64 }}p12-password: ${{ env.APPLE_INSTALLER_CERTIFICATE_PASSWORD }}- keychain: build+ keychain: build-installerkeychain-password: ${{ github.run_id }}- # We don't need to create a keychain here because we're using the build keychain that was created in the previous step- create-keychain: false+ # We need to create a separate keychain for the installer certificate+ create-keychain: true- name: Verify certificatesif: inputs.os == 'macos'shell: ${{ inputs.shell }}run: |- echo "Available signing identities:"- security find-identity -v -p codesigning build.keychain+ echo "Available signing identities in build-app keychain:"+ security find-identity -v -p codesigning build-app.keychain+ echo "Available signing identities in build-installer keychain:"+ security find-identity -v -p codesigning build-installer.keychain- name: Set up Python and other macOS dependenciesif: ${{ inputs.os == 'macos' }}@@ -96,10 +98,14 @@ runs:dmg_file=$(find ./dist -name "*.dmg" -print -quit)if [ -n "$dmg_file" ]; thenecho "Found DMG: $dmg_file"- # Get the first valid signing identity from the keychain- SIGNING_IDENTITY=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application" | head -1 | sed -E 's/.*"([^"]+)".*/\1/')+ # Try to get a signing identity from both keychains+ SIGNING_IDENTITY=$(security find-identity -v -p codesigning build-app.keychain | grep "Developer ID Application" | head -1 | sed -E 's/.*"([^"]+)".*/\1/')if [ -z "$SIGNING_IDENTITY" ]; then- echo "Error: No valid Developer ID Application certificate found in keychain"+ echo "No valid Developer ID Application certificate found in build-app keychain, trying build-installer keychain"+ SIGNING_IDENTITY=$(security find-identity -v -p codesigning build-installer.keychain | grep "Developer ID Application" | head -1 | sed -E 's/.*"([^"]+)".*/\1/')+ fi+ if [ -z "$SIGNING_IDENTITY" ]; then+ echo "Error: No valid Developer ID Application certificate found in any keychain"exit 1fiecho "Using signing identity: $SIGNING_IDENTITY"