You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
7.4.0
Electron version
v30.0.6
Operating system
Github Runner, macos-latest
Last known working Electron Forge version
No response
Expected behavior
The github runner will build and publish.
Actual behavior
The runner hangs on the "preparing native dependencies" step, with no error or further info, only for the OSX build. For windows it build fine. I suspect this may have something to do with code signing.
Steps to reproduce
My forge config:
importtype{ForgeConfig}from"@electron-forge/shared-types";import{MakerSquirrel}from"@electron-forge/maker-squirrel";import{MakerDMG}from"@electron-forge/maker-dmg";import{AutoUnpackNativesPlugin}from"@electron-forge/plugin-auto-unpack-natives";import{WebpackPlugin}from"@electron-forge/plugin-webpack";import{FusesPlugin}from"@electron-forge/plugin-fuses";import{FuseV1Options,FuseVersion}from"@electron/fuses";import{mainConfig}from"./webpack.main.config";import{rendererConfig}from"./webpack.renderer.config";constconfig: ForgeConfig={packagerConfig: {asar: true,icon: "./src/assets/icon",osxSign: {identity: `Developer ID Application: ${process.env.APPLE_IDENTITY!}`,},osxNotarize: {appleId: process.env.APPLE_ID!,appleIdPassword: process.env.APPLE_PASSWORD!,teamId: process.env.APPLE_TEAM_ID!,},},rebuildConfig: {},makers: [newMakerSquirrel({}),newMakerDMG({})],plugins: [newAutoUnpackNativesPlugin({}),newWebpackPlugin({
mainConfig,devContentSecurityPolicy: "connect-src 'self' * 'unsafe-eval'",renderer: {config: rendererConfig,entryPoints: [{html: "./src/main/index.html",js: "./src/main/renderer.ts",name: "main_window",preload: {js: "./src/preload.ts",},},],},}),// Fuses are used to enable/disable various Electron functionality// at package time, before code signing the applicationnewFusesPlugin({version: FuseVersion.V1,[FuseV1Options.RunAsNode]: false,[FuseV1Options.EnableCookieEncryption]: true,[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,[FuseV1Options.EnableNodeCliInspectArguments]: false,[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,[FuseV1Options.OnlyLoadAppFromAsar]: true,}),],publishers: [{name: "@electron-forge/publisher-github",config: {repository: {owner: "jamesg31",name: "sonoron-radio-dispatch-ui",},prerelease: true,},},],};exportdefaultconfig;
Hi @jamesg31, if no additional debug information is provided, please try DEBUG=electron-*, which should also pull in debug logs from packager, notarize, and osx-sign :)
I run DEBUG=electron-* npm run make -- --arch="arm64" --platform="darwin"
and got this error
An unhandled rejection has occurred inside Forge:
TypeError: Cannot read properties of null (reading 'toString')
at flipFuses (/home/mohammad/projectFile/app/node_modules/@electron/fuses/src/index.ts:195:35)
at async /home/mohammad/projectFile/app/node_modules/@electron-forge/plugin-fuses/src/FusesPlugin.ts:37:11
at async PluginInterface.triggerHook (/home/mohammad/projectFile/app/node_modules/@electron-forge/core/src/util/plugin-interface.ts:78:13)
at async runHook (/home/mohammad/projectFile/app/node_modules/@electron-forge/core/src/util/hook.ts:29:3)
at async getTargetKey.platform (/home/mohammad/projectFile/app/node_modules/@electron-forge/core/src/api/package.ts:243:17)
For the first time, it takes more than 7 hours. So github actions are not recommended for first publishing due to workflow minutes limit (or you are rich).
The next build takes about 5 minutes
Pre-flight checklist
Electron Forge version
7.4.0
Electron version
v30.0.6
Operating system
Github Runner, macos-latest
Last known working Electron Forge version
No response
Expected behavior
The github runner will build and publish.
Actual behavior
The runner hangs on the "preparing native dependencies" step, with no error or further info, only for the OSX build. For windows it build fine. I suspect this may have something to do with code signing.
Steps to reproduce
My forge config:
My Github Action in case that is useful:
Additional information
Console with DEBUG=electron-forge:*
The text was updated successfully, but these errors were encountered: