|
63 | 63 | runs-on: macos-latest |
64 | 64 |
|
65 | 65 | steps: |
66 | | - - uses: actions/checkout@v2 |
| 66 | + - uses: actions/checkout@v4 |
67 | 67 |
|
68 | 68 | - name: Set up JDK 21 |
69 | 69 | uses: actions/setup-java@v4 |
@@ -110,35 +110,28 @@ jobs: |
110 | 110 | path: releng/com.espressif.idf.product/target/products/Espressif-IDE-${{ env.VERSION }}-linux.gtk.aarch64.tar.gz |
111 | 111 |
|
112 | 112 | - name: Codesign Espressif-IDE |
113 | | - env: |
114 | | - MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }} |
115 | | - MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }} |
116 | | - run: | |
117 | | - echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12 |
118 | | - /usr/bin/security create-keychain -p espressif build.keychain |
119 | | - /usr/bin/security default-keychain -s build.keychain |
120 | | - /usr/bin/security unlock-keychain -p espressif build.keychain |
121 | | - /usr/bin/security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign |
122 | | - /usr/bin/security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k espressif build.keychain |
123 | | - |
124 | | - echo "codesigning espressif-ide-macosx.cocoa.x86_64" |
125 | | - /usr/bin/codesign --entitlements $PWD/releng/com.espressif.idf.product/entitlements/espressif-ide.entitlement --options runtime --force -s "ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. (QWXF6GB4AV)" $PWD/releng/com.espressif.idf.product/target/products/com.espressif.idf.product/macosx/cocoa/x86_64/Espressif-IDE.app -v |
126 | | - /usr/bin/codesign -v -vvv --deep $PWD/releng/com.espressif.idf.product/target/products/com.espressif.idf.product/macosx/cocoa/x86_64/Espressif-IDE.app |
127 | | -
|
128 | | - echo "codesigning espressif-ide-macosx.cocoa.aarch64" |
129 | | - /usr/bin/codesign --entitlements $PWD/releng/com.espressif.idf.product/entitlements/espressif-ide.entitlement --options runtime --force -s "ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. (QWXF6GB4AV)" $PWD/releng/com.espressif.idf.product/target/products/com.espressif.idf.product/macosx/cocoa/aarch64/Espressif-IDE.app -v |
130 | | - /usr/bin/codesign -v -vvv --deep $PWD/releng/com.espressif.idf.product/target/products/com.espressif.idf.product/macosx/cocoa/aarch64/Espressif-IDE.app |
131 | | - |
132 | | - echo "Creating dmg for espressif-ide-macosx.cocoa.x86_64" |
133 | | - $PWD/releng/ide-dmg-builder/ide-dmg-builder.sh |
134 | | - /usr/bin/codesign --entitlements $PWD/releng/com.espressif.idf.product/entitlements/espressif-ide.entitlement --options runtime --force -s "ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. (QWXF6GB4AV)" $PWD/releng/ide-dmg-builder/Espressif-IDE-macosx-cocoa-x86_64.dmg -v |
135 | | - /usr/bin/codesign -v -vvv --deep $PWD/releng/ide-dmg-builder/Espressif-IDE-macosx-cocoa-x86_64.dmg |
136 | | - |
137 | | - echo "Creating dmg for espressif-ide-macosx.cocoa.aarch64" |
138 | | - $PWD/releng/ide-dmg-builder/ide-dmg-builder-aarch64.sh |
139 | | - /usr/bin/codesign --options runtime --force -s "ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. (QWXF6GB4AV)" $PWD/releng/ide-dmg-builder/Espressif-IDE-macosx-cocoa-aarch64.dmg -v |
140 | | - /usr/bin/codesign -v -vvv --deep $PWD/releng/ide-dmg-builder/Espressif-IDE-macosx-cocoa-aarch64.dmg |
141 | | - |
| 113 | + uses: espressif/release-sign@master |
| 114 | + with: |
| 115 | + path: releng/com.espressif.idf.product/target/products/com.espressif.idf.product/macosx/cocoa |
| 116 | + macos-signing-identity: ${{ secrets.MACOS_CS_IDENTITY_ID }} |
| 117 | + macos-certificate: ${{ secrets.MACOS_CS_CERTIFICATE }} |
| 118 | + macos-certificate-pwd: ${{ secrets.MACOS_CS_CERTIFICATE_PWD }} |
| 119 | + macos-entitlements: releng/com.espressif.idf.product/entitlements/espressif-ide.entitlement |
| 120 | + |
| 121 | + - name: Create DMG for macOS x86_64 |
| 122 | + run: $PWD/releng/ide-dmg-builder/ide-dmg-builder.sh |
| 123 | + |
| 124 | + - name: Create DMG for macOS aarch64 |
| 125 | + run: $PWD/releng/ide-dmg-builder/ide-dmg-builder-aarch64.sh |
| 126 | + |
| 127 | + - name: Codesign Espressif-IDE |
| 128 | + uses: espressif/release-sign@master |
| 129 | + with: |
| 130 | + path: releng/ide-dmg-builder |
| 131 | + macos-signing-identity: ${{ secrets.MACOS_CS_IDENTITY_ID }} |
| 132 | + macos-certificate: ${{ secrets.MACOS_CS_CERTIFICATE }} |
| 133 | + macos-certificate-pwd: ${{ secrets.MACOS_CS_CERTIFICATE_PWD }} |
| 134 | + |
142 | 135 | - name: Upload espressif-ide-macosx.cocoa.x86_64 dmg |
143 | 136 | if: ${{ !cancelled() }} |
144 | 137 | uses: actions/upload-artifact@v4 |
|
0 commit comments