Skip to content

Commit

Permalink
fix: update electron builder config
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Apr 4, 2024
1 parent abdf998 commit 6a628ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
# macOS notarization API key
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASSWORD }}
APPLETEAMID: ${{ secrets.APPLETEAMID }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SIGN: true
run: |
Expand Down
1 change: 1 addition & 0 deletions electron-builder.json5
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"default"
]
},
"afterSign": "scripts/notarize.cjs",
"win": {
"target": [
{
Expand Down
6 changes: 3 additions & 3 deletions scripts/notarize.js → scripts/notarize.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require('dotenv').config()
import { notarize } from '@electron/notarize'
const { notarize } = require('@electron/notarize')

exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context
Expand All @@ -19,11 +19,11 @@ exports.default = async function notarizing(context) {
}

const appName = context.packager.appInfo.productFilename

return await notarize({
appBundleId: 'io.witnet.sheikah',
tool: 'notarytool',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
teamId: process.env.APPLETEAMID,
})
}

0 comments on commit 6a628ef

Please sign in to comment.