Skip to content

Commit

Permalink
scratch that and mod paths
Browse files Browse the repository at this point in the history
  • Loading branch information
KenCorma committed Aug 28, 2024
1 parent 61b4a9a commit ffafc23
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ const config: ForgeConfig = {

// Only run signing on macOS
if (platform === 'darwin') {
let output = await import('child_process').then(cp => cp.execSync(`cd ${buildPath} | find . -perm +111 -type f `))
let output = await import('child_process').then(cp => cp.execSync(`cd ${buildPath}/assets | find . -perm +111 -type f `))
console.log('###',output.toString());
const binaries = [...output];
binaries.forEach(async (e) =>
const binaries = output.toString().split('\n');
binaries.forEach(async (e:string) =>
{
const modPath = `${buildPath}/assets${e.slice(1)}`
console.log(modPath);
let outputSign = await import('child_process').then(cp => cp.execSync(
`cd ${buildPath} | codesign --deep --force --verbose --sign "${process.env.SIGN_ID}" "${e}"`,
`codesign --deep --force --verbose --sign "${process.env.SIGN_ID}" "${modPath}"`,
{
stdio: 'inherit',
},
Expand Down

0 comments on commit ffafc23

Please sign in to comment.