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.5.0
Electron version
v33.0.2
Operating system
Ubuntu 20.04.6 LTS
Last known working Electron Forge version
No response
Expected behavior
build should work
Actual behavior
not working
Steps to reproduce
set name shutdown-scheduler in package.json
set product name Shutdown Scheduler in package.json
run make command on ubuntu
error happens
An unhandled rejection has occurred inside Forge:
Error: could not find the Electron app binary at "/home/user/Desktop/my-timer-app/out/Shutdown Scheduler-linux-x64/shutdown-scheduler". You may need to re-bundle the app using Electron Packager's "executableName" option.
at /home/user/Desktop/my-timer-app/node_modules/electron-installer-common/src/installer.js:154:15
at async Promise.all (index 3)
at async module.exports (/home/user/Desktop/my-timer-app/node_modules/electron-installer-debian/src/installer.js:261:3)
at async MakerDeb.make (/home/user/Desktop/my-timer-app/node_modules/@electron-forge/maker-deb/src/MakerDeb.ts:41:30)
at async /home/user/Desktop/my-timer-app/node_modules/@electron-forge/core/src/api/make.ts:280:41
at async _Task.taskFn (/home/user/Desktop/my-timer-app/node_modules/@electron-forge/tracer/src/index.ts:51:14)
at async _Task.run (/home/user/Desktop/my-timer-app/node_modules/listr2/dist/index.cjs:2063:11)
error Command failed with exit code 1.
from my obersvations, on macOS the generated binary is called Shutdown Scheduler and make works fine, but on ubuntu, the binary is called Shutdown Scheduler but make seems to be looking for shutdown-scheduler instead.
it seems the issue is fixed when i set executableName: "shutdown-scheduler" in forge packagerConfig but i don't understand why this error only happens on ubuntu.
importtype{ForgeConfig}from"@electron-forge/shared-types";import{MakerSquirrel}from"@electron-forge/maker-squirrel";import{MakerZIP}from"@electron-forge/maker-zip";import{MakerDeb}from"@electron-forge/maker-deb";// import { MakerRpm } from "@electron-forge/maker-rpm";import{VitePlugin}from"@electron-forge/plugin-vite";import{FusesPlugin}from"@electron-forge/plugin-fuses";import{FuseV1Options,FuseVersion}from"@electron/fuses";constconfig: ForgeConfig={packagerConfig: {asar: false,},rebuildConfig: {},makers: [newMakerSquirrel({}),newMakerZIP({},["darwin"]),// new MakerRpm({}),newMakerDeb({}),],plugins: [newVitePlugin({// `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.// If you are familiar with Vite configuration, it will look really familiar.build: [{// `entry` is just an alias for `build.lib.entry` in the corresponding file of `config`.entry: "src/main.ts",config: "vite.main.config.ts",target: "main",},{entry: "src/preload.ts",config: "vite.preload.config.ts",target: "preload",},],renderer: [{name: "main_window",config: "vite.renderer.config.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]: false,}),],};exportdefaultconfig;
The text was updated successfully, but these errors were encountered:
hichemfantar
changed the title
Vite React TS - Ubuntu .deb build: name and productName are not used correctly during packaging
Vite React TS - Ubuntu .deb: make command fails "Error: could not find the Electron app binary"
Nov 9, 2024
Pre-flight checklist
Electron Forge version
7.5.0
Electron version
v33.0.2
Operating system
Ubuntu 20.04.6 LTS
Last known working Electron Forge version
No response
Expected behavior
build should work
Actual behavior
not working
Steps to reproduce
shutdown-scheduler
in package.jsonShutdown Scheduler
in package.jsonfrom my obersvations, on macOS the generated binary is called
Shutdown Scheduler
and make works fine, but on ubuntu, the binary is calledShutdown Scheduler
but make seems to be looking forshutdown-scheduler
instead.it seems the issue is fixed when i set
executableName: "shutdown-scheduler"
in forgepackagerConfig
but i don't understand why this error only happens on ubuntu.Additional information
package.json
forge.config.ts
The text was updated successfully, but these errors were encountered: