test codesign

This commit is contained in:
neil 2023-02-02 13:31:49 +08:00
parent 13d497f6f5
commit 900c1b10e7

View file

@ -139,8 +139,8 @@ jobs:
# APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} # APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
run: tea -ES xc build run: tea -ES xc build
- run: mkdir -p target - run: mkdir -p target
- run: cp ./modules/desktop/dist/tea-0.0.0-arm64.dmg ./target - run: cp ./modules/desktop/dist/**/*.dmg ./target/tea.dmg
- run: cp ./modules/desktop/dist/tea-0.0.0-arm64.zip ./target - run: cp ./modules/desktop/dist/**/*.zip ./target/tea.zip
- run: tar -czvf artifacts.tgz -C ./target/ . - run: tar -czvf artifacts.tgz -C ./target/ .
- name: upload artifacts - name: upload artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@ -169,6 +169,10 @@ jobs:
env: env:
APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
- run: xcrun altool --notarize-app --username "$APPLE_ID" --password "$APPLE_PASSWORD" --primary-bundle-id "xyz.tea.gui" --file ./tea.dmg
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
# build_tauri: # build_tauri:
# needs: changes # needs: changes
@ -288,7 +292,6 @@ jobs:
- name: zip .app for MacOS - name: zip .app for MacOS
if: startsWith(matrix.platform.name, 'darwin+') if: startsWith(matrix.platform.name, 'darwin+')
run: | run: |
cd ./macos/
zip -r tea.zip tea.app zip -r tea.zip tea.app
- uses: aws-actions/configure-aws-credentials@v1 - uses: aws-actions/configure-aws-credentials@v1