diff --git a/afterSignHook.js b/afterSignHook.js index 3e01f16..4b69eaf 100644 --- a/afterSignHook.js +++ b/afterSignHook.js @@ -17,9 +17,11 @@ module.exports = async function (params) { console.log('afterSign hook triggered'); // Same appId in electron-builder. - let appId = 'com.rookout.explorook' + const appId = 'com.rookout.explorook'; + // This will prevent using the legacy altool to notarize (will be shut down by 2023) + const tool = "notarytool"; - let appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`); + const appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`); console.log(appPath) if (!fs.existsSync(appPath)) { throw new Error(`Cannot find application at: ${appPath}`); @@ -30,10 +32,11 @@ module.exports = async function (params) { try { await electron_notarize.notarize({ appBundleId: appId, - appPath: appPath, + appPath, appleId: process.env.appleId, appleIdPassword: process.env.appleIdPassword, - tool: "notarytool" // This will prevent using the legacy altool to notarize (will be shut down by 2023) + teamId: process.env.appleTeamId, + tool }); } catch (error) { console.error(error); diff --git a/package.json b/package.json index 3bc5021..da197d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "explorook", - "version": "1.12.4", + "version": "1.12.5", "description": "Rookout's site addon to support local files and folders", "main": "dist/index.js", "scripts": {