Skip to content

Commit

Permalink
feat: electron-forge macos code sgin
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Jun 2, 2024
1 parent 3e28d3c commit 6059427
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
- name: Build app
shell: bash
run: ./scripts/make-distributions.sh
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}

- name: Sign files with Trusted Signing
if: matrix.os == 'windows-latest'
uses: azure/[email protected]
Expand All @@ -56,17 +61,6 @@ jobs:
file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256
- name: Release App to Mac App Store
uses: GuillaumeFalourd/notary-tools@v1
# if: steps.tag_release.outputs.successful
if: matrix.os == 'macos-latest'
with:
product_path: out/make/**/*.dmg
apple_id: ${{ secrets.APPLE_ID }}
password: ${{ secrets.APPLE_ID_PASSWORD }}
team_id: ${{ secrets.APPLE_TEAM_ID }}
xcode_path: /Applications/Xcode_15.4.app

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ const config: ForgeConfig = {
asar: true,
icon: iconPath,
executableName: 'DocKit',
osxNotarize: {
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASSWORD,
teamId: process.env.APPLE_TEAM_ID,
},
},
rebuildConfig: {},
makers: [
Expand Down

0 comments on commit 6059427

Please sign in to comment.