Updated README, fixed config bug, added build to notarize.js

This commit is contained in:
Andrew Gundersen 2022-03-14 06:30:59 -05:00
commit 4936c76770
3 changed files with 9 additions and 2 deletions

View file

@ -3,6 +3,7 @@ const sign = require("electron-osx-sign").signAsync;
const notarize = require("electron-notarize").notarize;
const app = "Electron.app";
const dir = `${app}/Contents/Resources/app`;
const runShellCommand = (cmd) => (new Promise((resolve, reject) => {
exec(cmd, (error, stdout, stderr) => {
@ -30,7 +31,11 @@ const notarizeConfig = {
try
{
console.log("Cleaning App...");
console.log("Building...");
await runShellCommand(`rm -rf ${dir} && mkdir ${dir} && cp -r {package.json,src,node_modules} ${dir}
`);
console.log("Cleaning...");
await runShellCommand(`xattr -cr ${app}`);
console.log("Signing...");