Skip to content

Commit 1bc14eb

Browse files
committed
ensured env variables loaded into aftersign script
1 parent 87719e1 commit 1bc14eb

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
"build:mac": "npm run build && electron-builder --mac",
2222
"build:linux": "npm run build && electron-builder --linux"
2323
},
24-
"build": {
25-
"appId": "com.ryansoderberg.imagine"
26-
},
2724
"dependencies": {
2825
"@electron-toolkit/preload": "^3.0.1",
2926
"@electron-toolkit/utils": "^3.0.0",

scripts/notarize.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import type { AfterPackContext } from 'electron-builder'
33
import { notarize } from '@electron/notarize'
44
import path from 'path'
55

6+
import * as dotenv from 'dotenv'
7+
dotenv.config()
8+
69
export async function afterSign({
710
appOutDir,
811
packager,
@@ -40,11 +43,6 @@ export async function afterSign({
4043
return
4144
}
4245

43-
console.log('Notarizing with...')
44-
console.log(` primaryBundleId: ${appBundleId}`)
45-
console.log(` username: ${appleId}`)
46-
console.log(` file: ${appPath}`)
47-
4846
await notarize({
4947
appPath,
5048
appleId,

0 commit comments

Comments
 (0)