1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00
fcast/.cirrus.yml
2025-04-17 12:58:47 -05:00

22 lines
1.1 KiB
YAML

# Run command: `cirrus run --artifacts-dir receivers/electron/out`
task:
name: buildReceiverMac
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:14.3.1
buildReceiverMac_script:
- source .secure_files/.env
- sudo security add-certificates -k /Library/Keychains/System.keychain ./.secure_files/developerID_application.cer
- security unlock-keychain -p "admin" ~/Library/Keychains/login.keychain
- security import ./.secure_files/Certificates.p12 -k ~/Library/Keychains/login.keychain -P "$FCAST_CERTIFICATES_PASSWORD" -T /usr/bin/codesign
# Keychain ignores access control, causing to prompt for access and failing in CI environments...: https://stackoverflow.com/a/40039594
- "security set-key-partition-list -S apple-tool:,apple: -s -k admin ~/Library/Keychains/login.keychain"
- cd receivers/electron
- npm install
- npm rebuild
- npm run build
- npm run make -- --platform="darwin" --arch="arm64"
- npm run make -- --platform="darwin" --arch="x64"
binary_artifacts:
path: receivers/electron/out/*