Skip to content

Commit

Permalink
kek
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Castro authored Jul 24, 2023
1 parent f627ad0 commit 28a6947
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/xcode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,22 @@ jobs:

- name: Set up macOS keychain
run: |
mkdir -p ~/Library/Keychains
mkdir -p ~/keychain
echo "${CERTIFICATE_BASE64}" | base64 --decode > certificate.p12
echo "${P12_PASSWORD_BASE64}" | base64 --decode > password.txt
security create-keychain -p mysecretpassword build.keychain
security import certificate.p12 -P "$(cat password.txt)" -k ~/Library/Keychains/build.keychain -T /usr/bin/codesign
security list-keychain -s ~/Library/Keychains/build.keychain
security default-keychain -s ~/Library/Keychains/build.keychain
security create-keychain -p mysecretpassword ~/keychain/build.keychain
security import certificate.p12 -P "$(cat password.txt)" -k ~/keychain/build.keychain -T /usr/bin/codesign
security list-keychain -s ~/keychain/build.keychain
security default-keychain -s ~/keychain/build.keychain
- name: Xcode Select Version
uses: mobiledevops/xcode-select-version-action@v1
with:
xcode-select-version: 14.3.1

- name: Build macOS app (Unsigned)
- name: Build macOS app
run: xcodebuild archive -scheme "ishare" -configuration "Release" -archivePath "build/ishare.xcarchive" -destination "platform=macOS"

- name: Sign the .app
run: |
codesign --force --deep --sign "Apple Development: [email protected] (M43MLSZ667)" "build/ishare.xcarchive/Products/Applications/ishare.app"
- name: Package .app and create .zip
run: |
mkdir -p build/ishare.app
Expand Down

0 comments on commit 28a6947

Please sign in to comment.