mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
Update build-macos.yml
This commit is contained in:
parent
a7a5ffe633
commit
8087296918
33
.github/workflows/build-macos.yml
vendored
33
.github/workflows/build-macos.yml
vendored
@ -29,36 +29,26 @@ jobs:
|
|||||||
security list-keychains -s build.keychain login.keychain-db
|
security list-keychains -s build.keychain login.keychain-db
|
||||||
security unlock-keychain -p "" build.keychain
|
security unlock-keychain -p "" build.keychain
|
||||||
|
|
||||||
- name: Check secrets presence
|
- name: Check PEM secret presence
|
||||||
env:
|
env:
|
||||||
CERT_P12_RAW: ${{ secrets.MAC_CERTIFICATE_P12_RAW }}
|
CERT_PEM: ${{ secrets.MAC_CERTIFICATE_PEM }}
|
||||||
CERT_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
|
|
||||||
run: |
|
run: |
|
||||||
if [ -z "$CERT_PASSWORD" ]; then
|
if [ -z "$CERT_PEM" ]; then
|
||||||
echo "Password secret is empty or missing!"
|
echo "PEM secret is empty or missing!"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "Password is set"
|
echo "PEM is set"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$CERT_P12_RAW" ]; then
|
- name: Write PEM file and import
|
||||||
echo "P12 secret is empty or missing!"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "P12 is set"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Import macOS certificate
|
|
||||||
env:
|
env:
|
||||||
CERT_P12_RAW: ${{ secrets.MAC_CERTIFICATE_P12_RAW }}
|
CERT_PEM: ${{ secrets.MAC_CERTIFICATE_PEM }}
|
||||||
CERT_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
|
|
||||||
run: |
|
run: |
|
||||||
# Write raw secret directly to file (no decoding)
|
echo "$CERT_PEM" > cert.pem
|
||||||
echo "$CERT_P12_RAW" > cert.p12
|
|
||||||
|
# Import certificate (assuming private key is included in PEM)
|
||||||
security import cert.p12 \
|
security import cert.pem \
|
||||||
-k build.keychain \
|
-k build.keychain \
|
||||||
-P "$CERT_PASSWORD" \
|
|
||||||
-T /usr/bin/codesign
|
-T /usr/bin/codesign
|
||||||
|
|
||||||
security set-key-partition-list \
|
security set-key-partition-list \
|
||||||
@ -72,7 +62,6 @@ jobs:
|
|||||||
CSC_IDENTITY_AUTO_DISCOVERY: false
|
CSC_IDENTITY_AUTO_DISCOVERY: false
|
||||||
CSC_KEYCHAIN: build.keychain
|
CSC_KEYCHAIN: build.keychain
|
||||||
CSC_NAME: "Anirudh Sevugan"
|
CSC_NAME: "Anirudh Sevugan"
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
|
|
||||||
run: npx electron-builder --mac --x64 --arm64 --universal
|
run: npx electron-builder --mac --x64 --arm64 --universal
|
||||||
working-directory: simpliplay
|
working-directory: simpliplay
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user