mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 11:57:50 +02:00
A new approach to signing
This commit is contained in:
parent
76d139bb5a
commit
59ed3dd9e4
33
.github/workflows/build-and-sign-macos.yml
vendored
33
.github/workflows/build-and-sign-macos.yml
vendored
@ -49,36 +49,13 @@ jobs:
|
|||||||
/usr/bin/codesign --force -s 6D4E1575A0D40C370E294916A8390797106C8A6E hishtory-darwin-amd64 -v
|
/usr/bin/codesign --force -s 6D4E1575A0D40C370E294916A8390797106C8A6E hishtory-darwin-amd64 -v
|
||||||
echo "Signed the binaries:"
|
echo "Signed the binaries:"
|
||||||
sha1sum hishtory-*
|
sha1sum hishtory-*
|
||||||
echo "xattr:"
|
# Move them to the released filenames
|
||||||
xattr hishtory-darwin-arm64
|
cp hishtory-darwin-arm64 hishtory-darwin-arm64-signed
|
||||||
echo "Exporting xattr for hishtory-darwin-arm64"
|
cp hishtory-darwin-amd64 hishtory-darwin-amd64-signed
|
||||||
export CD=`xattr -p com.apple.cs.CodeDirectory hishtory-darwin-arm64`
|
|
||||||
export CR=`xattr -p com.apple.cs.CodeRequirements hishtory-darwin-arm64`
|
|
||||||
export CR1=`xattr -p com.apple.cs.CodeRequirements-1 hishtory-darwin-arm64`
|
|
||||||
export CS=`xattr -p com.apple.cs.CodeSignature hishtory-darwin-arm64`
|
|
||||||
jq --null-input \
|
|
||||||
--arg cd "$CD" \
|
|
||||||
--arg cr "$CR" \
|
|
||||||
--arg cr1 "$CR1" \
|
|
||||||
--arg cs "$CS" \
|
|
||||||
'{"cd": $cd, "cr": $cr, "cr1": $cr1, "cs": $cs}' > hishtory-darwin-arm64-xattr.json
|
|
||||||
cat hishtory-darwin-arm64-xattr.json
|
|
||||||
echo "Exporting xattr for hishtory-darwin-amd64"
|
|
||||||
export CD=`xattr -p com.apple.cs.CodeDirectory hishtory-darwin-amd64`
|
|
||||||
export CR=`xattr -p com.apple.cs.CodeRequirements hishtory-darwin-amd64`
|
|
||||||
export CR1=`xattr -p com.apple.cs.CodeRequirements-1 hishtory-darwin-amd64`
|
|
||||||
export CS=`xattr -p com.apple.cs.CodeSignature hishtory-darwin-amd64`
|
|
||||||
jq --null-input \
|
|
||||||
--arg cd "$CD" \
|
|
||||||
--arg cr "$CR" \
|
|
||||||
--arg cr1 "$CR1" \
|
|
||||||
--arg cs "$CS" \
|
|
||||||
'{"cd": $cd, "cr": $cr, "cr1": $cr1, "cs": $cs}' > hishtory-darwin-amd64-xattr.json
|
|
||||||
cat hishtory-darwin-amd64-xattr.json
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
hishtory-darwin-arm64-xattr.json
|
hishtory-darwin-arm64-signed.json
|
||||||
hishtory-darwin-amd64-xattr.json
|
hishtory-darwin-amd64-signed.json
|
Loading…
x
Reference in New Issue
Block a user