Closed
Description
I'm flipping fuses in my afterPack script. Is there a better way to get the path to the final packaged Electron executable?
const path = require('path')
const { flipFuses, FuseVersion, FuseV1Options } = require('@electron/fuses')
module.exports = async function afterPack(context) {
const ext = {
darwin: '.app',
win32: '.exe',
}[context.electronPlatformName]
const electronBinaryPath = path.join(context.appOutDir, context.packager.appInfo.productFilename + ext) // is there a better way?
await flipFuses(
electronBinaryPath,
{
version: FuseVersion.V1,
[FuseV1Options.EnableNodeCliInspectArguments]: false,
},
)
}
Metadata
Metadata
Assignees
Labels
No labels