File tree 3 files changed +18345
-40
lines changed
3 files changed +18345
-40
lines changed Original file line number Diff line number Diff line change 1
- const fs = require ( "fs" ) ;
2
- const path = require ( "path" ) ;
3
- require ( "dotenv" ) . config ( ) ;
4
- var electron_notarize = require ( " electron- notarize") ;
1
+ import fs from "fs" ;
2
+ import path from "path" ;
3
+ import { config } from "dotenv" ;
4
+ import { notarize } from "@ electron/ notarize";
5
5
6
- module . exports = async function ( params ) {
6
+ config ( ) ;
7
+
8
+ export default async function ( params ) {
7
9
// Only notarize the app on Mac OS only.
8
10
if ( process . platform !== "darwin" ) {
9
11
console . log (
@@ -24,7 +26,7 @@ module.exports = async function (params) {
24
26
console . log ( `Notarizing ${ appId } found at ${ appPath } ` ) ;
25
27
26
28
try {
27
- await electron_notarize . notarize ( {
29
+ await notarize ( {
28
30
tool : "notarytool" ,
29
31
appBundleId : appId ,
30
32
appPath : appPath ,
@@ -37,4 +39,4 @@ module.exports = async function (params) {
37
39
}
38
40
39
41
console . log ( `Done notarizing ${ appId } ` ) ;
40
- } ;
42
+ }
You can’t perform that action at this time.
0 commit comments