Skip to content

Commit 6a6687a

Browse files
committed
deps: update notary tool
1 parent d239093 commit 6a6687a

File tree

3 files changed

+18345
-40
lines changed

3 files changed

+18345
-40
lines changed

notarize.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
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";
55

6-
module.exports = async function (params) {
6+
config();
7+
8+
export default async function (params) {
79
// Only notarize the app on Mac OS only.
810
if (process.platform !== "darwin") {
911
console.log(
@@ -24,7 +26,7 @@ module.exports = async function (params) {
2426
console.log(`Notarizing ${appId} found at ${appPath}`);
2527

2628
try {
27-
await electron_notarize.notarize({
29+
await notarize({
2830
tool: "notarytool",
2931
appBundleId: appId,
3032
appPath: appPath,
@@ -37,4 +39,4 @@ module.exports = async function (params) {
3739
}
3840

3941
console.log(`Done notarizing ${appId}`);
40-
};
42+
}

0 commit comments

Comments
 (0)