Skip to content

Commit cd70fc9

Browse files
committed
fix: notarization
1 parent ac923fd commit cd70fc9

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"private": true,
55
"description": "A Witnet compatible desktop wallet interface and data requests development environment.",
66
"author": "Witnet Foundation <info@witnet.foundation>",
7-
"afterSign": "scripts/notarize.js",
87
"scripts": {
98
"serve": "vue-cli-service serve",
109
"build": "vue-cli-service build",

scripts/notarize.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require('dotenv').config()
2+
const { notarize } = require('electron-notarize')
3+
4+
exports.default = async function notarizing(context) {
5+
const { electronPlatformName, appOutDir } = context
6+
if (electronPlatformName !== 'darwin') {
7+
return
8+
}
9+
10+
const appName = context.packager.appInfo.productFilename
11+
12+
return await notarize({
13+
appBundleId: 'io.witnet.sheikah',
14+
appPath: `${appOutDir}/${appName}.app`,
15+
appleId: process.env.APPLEID,
16+
appleIdPassword: process.env.APPLEIDPASS,
17+
})
18+
}

vue.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
entitlementsInherit: 'build/entitlements.mac.plist',
1414
gatekeeperAssess: false,
1515
},
16+
afterSign: 'scripts/notarize.js',
1617
},
1718
nodeIntegration: true,
1819
},

0 commit comments

Comments
 (0)