build: MacOS code signing (#1795)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
20
.github/workflows/release-desktop-app.yml
vendored
20
.github/workflows/release-desktop-app.yml
vendored
@@ -98,9 +98,19 @@ jobs:
|
|||||||
- name: move octobase Binary
|
- name: move octobase Binary
|
||||||
run: cp ./packages/octobase-node/octobase.*.node ./apps/electron/dist/layers/main/
|
run: cp ./packages/octobase-node/octobase.*.node ./apps/electron/dist/layers/main/
|
||||||
|
|
||||||
|
- name: Signing By Apple Developer ID
|
||||||
|
uses: apple-actions/import-codesign-certs@v2
|
||||||
|
with:
|
||||||
|
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
|
||||||
|
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
|
||||||
|
|
||||||
- name: make build
|
- name: make build
|
||||||
run: yarn make-macos-x64
|
run: yarn make-macos-x64
|
||||||
working-directory: apps/electron
|
working-directory: apps/electron
|
||||||
|
env:
|
||||||
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||||
|
|
||||||
- name: Save x64 artifacts
|
- name: Save x64 artifacts
|
||||||
run: |
|
run: |
|
||||||
@@ -151,9 +161,19 @@ jobs:
|
|||||||
- name: move octobase Binary
|
- name: move octobase Binary
|
||||||
run: cp ./packages/octobase-node/octobase.*.node ./apps/electron/dist/layers/main/
|
run: cp ./packages/octobase-node/octobase.*.node ./apps/electron/dist/layers/main/
|
||||||
|
|
||||||
|
- name: Signing By Apple Developer ID
|
||||||
|
uses: apple-actions/import-codesign-certs@v2
|
||||||
|
with:
|
||||||
|
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
|
||||||
|
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
|
||||||
|
|
||||||
- name: make build
|
- name: make build
|
||||||
run: yarn make-macos-arm64
|
run: yarn make-macos-arm64
|
||||||
working-directory: apps/electron
|
working-directory: apps/electron
|
||||||
|
env:
|
||||||
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||||
|
|
||||||
- name: Save arm64 artifacts
|
- name: Save arm64 artifacts
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -2,6 +2,16 @@ module.exports = {
|
|||||||
packagerConfig: {
|
packagerConfig: {
|
||||||
name: 'AFFiNE',
|
name: 'AFFiNE',
|
||||||
icon: './resources/icons/icon.icns',
|
icon: './resources/icons/icon.icns',
|
||||||
|
osxSign: {
|
||||||
|
identity: 'Developer ID Application: TOEVERYTHING PTE. LTD.',
|
||||||
|
'hardened-runtime': true,
|
||||||
|
}, // object must exist even if empty
|
||||||
|
osxNotarize: {
|
||||||
|
tool: 'notarytool',
|
||||||
|
appleId: process.env.APPLE_ID,
|
||||||
|
appleIdPassword: process.env.APPLE_PASSWORD,
|
||||||
|
teamId: process.env.APPLE_TEAM_ID,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
makers: [
|
makers: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5552,6 +5552,12 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@toeverything/hooks@workspace:../../packages/hooks":
|
||||||
|
version: 0.0.0-use.local
|
||||||
|
resolution: "@toeverything/hooks@workspace:../../packages/hooks"
|
||||||
|
languageName: unknown
|
||||||
|
linkType: soft
|
||||||
|
|
||||||
"@toeverything/y-indexeddb@workspace:*, @toeverything/y-indexeddb@workspace:../../packages/y-indexeddb":
|
"@toeverything/y-indexeddb@workspace:*, @toeverything/y-indexeddb@workspace:../../packages/y-indexeddb":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@toeverything/y-indexeddb@workspace:../../packages/y-indexeddb"
|
resolution: "@toeverything/y-indexeddb@workspace:../../packages/y-indexeddb"
|
||||||
|
|||||||
Reference in New Issue
Block a user