Skip to content

Commit

Permalink
feat: implement macos codesign
Browse files Browse the repository at this point in the history
Signed-off-by: seven <zilisheng1996@gmail.com>
  • Loading branch information
Blankll committed Jun 29, 2024
1 parent 71562a3 commit 9e4ab08
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 32 deletions.
63 changes: 31 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- run: npm run build
# - name: Generate changelog
# uses: jaywcjlove/changelog-generator@main
# id: changelog
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# - name: Generate changelog
# uses: jaywcjlove/changelog-generator@main
# id: changelog
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# - name: import windows certificate
# if: matrix.os == 'windows-latest'
# env:
Expand All @@ -81,41 +81,41 @@ jobs:
# certutil -decode certificate/tempCert.txt certificate/certificate.pfx
# Remove-Item -path certificate -include tempCert.txt
# Import-PfxCertificate -FilePath certificate/certificate.pfx -CertStoreLocation Cert:\CurrentUser\My -Password (ConvertTo-SecureString -String $env:WINDOWS_CERTIFICATE_PASSWORD -Force -AsPlainText)
# - name: Tag Release
# uses: jaywcjlove/create-tag-action@main
# id: tag_release
# with:
# prerelease: true
# token: ${{ secrets.GITHUB_TOKEN }}
# body: |
# ${{ steps.changelog.outputs.compareurl }}
#
# ${{ steps.changelog.outputs.changelog }}
# - name: Tag Release
# uses: jaywcjlove/create-tag-action@main
# id: tag_release
# with:
# prerelease: true
# token: ${{ secrets.GITHUB_TOKEN }}
# body: |
# ${{ steps.changelog.outputs.compareurl }}
#
# ${{ steps.changelog.outputs.changelog }}
- name: Build Distribution Artifacts
uses: tauri-apps/tauri-action@v0
# if: steps.tag_release.outputs.successful
# if: steps.tag_release.outputs.successful
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PKG_CONFIG_ALLOW_CROSS: 1
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
# APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
# APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
# APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
# APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
with:
# tagName: ${{ steps.tag_release.outputs.version }}
# releaseName: ${{ steps.tag_release.outputs.version }}
# appVersion: "${{ steps.tag_release.outputs.versionNumber }}"
# tagName: ${{ steps.tag_release.outputs.version }}
# releaseName: ${{ steps.tag_release.outputs.version }}
# appVersion: "${{ steps.tag_release.outputs.versionNumber }}"
args: ${{ matrix.args }}
# releaseBody: |
# ${{ steps.changelog.outputs.compareurl }}
#
# ${{ steps.changelog.outputs.changelog }}
#
# releaseDraft: true
# prerelease: true
# releaseBody: |
# ${{ steps.changelog.outputs.compareurl }}
#
# ${{ steps.changelog.outputs.changelog }}
#
# releaseDraft: true
# prerelease: true
- name: Sign files with Trusted Signing
if: matrix.os == 'windows-latest'
uses: azure/trusted-signing-action@v0.3.19
Expand All @@ -136,9 +136,8 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: artifacts-${{ matrix.os }}
path: |
src-tauri/target/**/*.{dmg,rpm,deb}
src-tauri/target/**/*?{setup.exe}
path: src-tauri/target/**/*.{dmg,rpm,deb,exe}

release:
needs: pre-release
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions src-tauri/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
# Generated by Tauri
# will have schema files for capabilities auto-completion
/gen/schemas
/entitlements/*
1 change: 1 addition & 0 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"active": true,
"targets": "all",
"identifier": "club.geekfun.dockit",
"category": "DeveloperTool",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
Expand Down

0 comments on commit 9e4ab08

Please sign in to comment.