Skip to content

Commit

Permalink
Add logs for packing
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Feb 4, 2024
1 parent f4598da commit 27d673f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/scripts/afterPack.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ async function addElectronFuses(context) {
: context.packager.appInfo.productFilename;
const electronBinaryPath = path.join(context.appOutDir, `${executableName}${ext}`);

console.log(
`Configuring fuses for binary: ${electronBinaryPath} (reset adhoc: ${
electronPlatformName === "darwin" && arch === Arch.universal
})`
);

await flipFuses(electronBinaryPath, {
version: FuseVersion.V1,
resetAdHocDarwinSignature: electronPlatformName === "darwin" && arch === Arch.universal,
Expand All @@ -36,6 +42,7 @@ async function addElectronFuses(context) {
}

module.exports = async (context) => {
console.log(`Checking package: ${context.electronPlatformName} @ ${context.arch}`);
if (context.electronPlatformName !== "darwin" || context.arch === Arch.universal) {
await addElectronFuses(context);
}
Expand Down

0 comments on commit 27d673f

Please sign in to comment.