From ba2bfc18d3b73a419d1f411975a4aa76f4c3b119 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sun, 24 Apr 2022 22:04:16 -0700 Subject: [PATCH] Release the xattrs containing the code signatures --- .github/workflows/build-and-sign-macos.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-sign-macos.yml b/.github/workflows/build-and-sign-macos.yml index efeefb9..b1b7a6b 100644 --- a/.github/workflows/build-and-sign-macos.yml +++ b/.github/workflows/build-and-sign-macos.yml @@ -9,8 +9,8 @@ jobs: macos: runs-on: macos-11.0 steps: - - uses: actions/checkout@v2 - name: Download and sign the latest executables + uses: actions/checkout@v2 env: MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }} MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }} @@ -35,3 +35,19 @@ jobs: sha1sum hishtory-* echo "xattr:" xattr hishtory-darwin-arm64 + echo "Exporting xattr" + xattr -p com.apple.cs.CodeDirectory hishtory-darwin-arm64 >> hishtory-darwin-arm64.xattr + xattr -p com.apple.cs.CodeRequirements hishtory-darwin-arm64 >> hishtory-darwin-arm64.xattr + xattr -p com.apple.cs.CodeRequirements-1 hishtory-darwin-arm64 >> hishtory-darwin-arm64.xattr + xattr -p com.apple.cs.CodeSignature hishtory-darwin-arm64 >> hishtory-darwin-arm64.xattr + xattr -p com.apple.cs.CodeDirectory hishtory-darwin-amd64 >> hishtory-darwin-amd64.xattr + xattr -p com.apple.cs.CodeRequirements hishtory-darwin-amd64 >> hishtory-darwin-amd64.xattr + xattr -p com.apple.cs.CodeRequirements-1 hishtory-darwin-amd64 >> hishtory-darwin-amd64.xattr + xattr -p com.apple.cs.CodeSignature hishtory-darwin-amd64 >> hishtory-darwin-amd64.xattr + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: + - hishtory-darwin-arm64.xattr + - hishtory-darwin-amd64.xattr \ No newline at end of file