Skip to content

Commit

Permalink
Add teamId to notarize parameters (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
Urook authored Sep 6, 2022
1 parent 30615f2 commit 992fe7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions afterSignHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 992fe7a

Please sign in to comment.