mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
final codesigning
This commit is contained in:
parent
256239dda9
commit
22fe95d424
11
.github/workflows/build-macos.yml
vendored
11
.github/workflows/build-macos.yml
vendored
@ -52,14 +52,9 @@ jobs:
|
|||||||
# Write the plain text PEM secret directly to a file
|
# Write the plain text PEM secret directly to a file
|
||||||
echo "$CERT_PEM" > cert.pem
|
echo "$CERT_PEM" > cert.pem
|
||||||
|
|
||||||
# Use openssl to convert the PEM to a PKCS12 (.p12) file with an empty password for the .p12 file itself.
|
# Directly import the PEM file into the temporary keychain
|
||||||
# The -passout option is critical here. It explicitly sets the export password.
|
# The -P flag specifies a blank password for the PEM file itself.
|
||||||
# The -password pass: is for an unencrypted private key within the PEM.
|
security import cert.pem -k build.keychain -P '' -T /usr/bin/codesign
|
||||||
openssl pkcs12 -export -out certificate.p12 -in cert.pem -passout pass: -password pass:
|
|
||||||
|
|
||||||
# Import the certificate into the temporary keychain
|
|
||||||
# The `-P` flag must match the password used in the openssl command (which is blank)
|
|
||||||
security import certificate.p12 -k build.keychain -P "" -T /usr/bin/codesign
|
|
||||||
|
|
||||||
# Trust the certificate for code signing
|
# Trust the certificate for code signing
|
||||||
security set-key-partition-list \
|
security set-key-partition-list \
|
||||||
|
Loading…
Reference in New Issue
Block a user