Skip to content

Commit

Permalink
disable strict verify
Browse files Browse the repository at this point in the history
  • Loading branch information
KenCorma committed Aug 28, 2024
1 parent 0e84cd6 commit 9b3be38
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@ const config: ForgeConfig = {
}},
osxSign: {
identity: process.env.SIGN_ID,
ignore: (filepath) => {
console.log('########',filepath);
if (filepath.includes('assets/ComfyUI') || filepath.includes('assets/python')) {
return true;
}
else {
return false;
}
}
strictVerify: false,
},
extraResource: ['./assets/UI', './assets/ComfyUI', './assets/python'],
osxNotarize: {
Expand All @@ -39,34 +31,6 @@ const config: ForgeConfig = {
},
rebuildConfig: {},
hooks: {
packageAfterCopy:
async (inConfig, buildPath, electronVersion, platform, arch) => {
try {
console.log('Build path:', buildPath);

// Only run signing on macOS
if (platform === 'darwin') {
let output = await import('child_process').then(cp => cp.execSync(`find . -perm +111 -type f `))
console.log('###', output.toString());
const binaries = output.toString().split('\n');
binaries.forEach(async (e: string) => {
if (e.includes('assets/ComfyUI') || e.includes('assets/python')) {
const modPath = `${buildPath}${e.slice(1)}`
console.log(modPath);
let outputSign = await import('child_process').then(cp => cp.execSync(
`codesign --deep --force --verbose --sign "${process.env.SIGN_ID}" "${modPath}"`,
{
stdio: 'inherit',
},
));
console.log("#######", outputSign);
}
});
}
} catch (error) {
console.error(error)
}
},
postPackage: async (forgeConfig, packageResult) => {
console.log('Post-package hook started');
console.log('Package result:', JSON.stringify(packageResult, null, 2));
Expand Down

0 comments on commit 9b3be38

Please sign in to comment.