Skip to content

Commit

Permalink
chore: make binaries function self-calling
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Sep 16, 2024
1 parent a8049f0 commit 6ec9704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ const main = async () => {
cscKeyPassword: process.env.CSC_KEY_PASSWORD,
cscLink: process.env.CSC_LINK,
mac: {
binaries: () => {
binaries: (() => {
// Read all files from the 'electron/bins' directory
const binaries = fs.readdirSync(electronBinsDir);
// Map each file name to the path inside the .app bundle
return binaries.map(bin => {
console.log(`Included binary ${bin} for signing.`);
return `Contents/Resources/bins/${bin}`;
});
},
})(),
category: 'public.app-category.utilities',
entitlements: 'electron/entitlements.mac.plist',
entitlementsInherit: 'electron/entitlements.mac.plist',
Expand Down

0 comments on commit 6ec9704

Please sign in to comment.