Skip to content

Commit

Permalink
I wasn't in the right folder
Browse files Browse the repository at this point in the history
  • Loading branch information
KenCorma committed Aug 30, 2024
1 parent 73487ab commit 0b12d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const config: ForgeConfig = {
//return;
// Only run signing on macOS
if (platform === 'darwin') {
let output = await import('child_process').then(cp => cp.execSync(`find . -name "*.dylib" -o -name "*.so"`))
let output = await import('child_process').then(cp => cp.execSync(`cd ${buildPath} && find . -name "*.dylib" -o -name "*.so"`))
console.log('###', output.toString());
const binaries = output.toString().split('\n');
binaries.forEach(async (e: string) => {
Expand All @@ -52,7 +52,7 @@ const config: ForgeConfig = {
// const modPath = `${buildPath}${e.slice(1)}`;
// console.log(modPath);
let outputSign = await import('child_process').then(cp => cp.execSync(
`codesign --force --deep --options runtime --verbose --sign "${process.env.SIGN_ID}" "${e}"`
`cd ${buildPath} && codesign --force --deep --options runtime --verbose --sign "${process.env.SIGN_ID}" "${e}"`
));
console.log("#######", outputSign.toString());

Expand Down

0 comments on commit 0b12d62

Please sign in to comment.