forge icon indicating copy to clipboard operation
forge copied to clipboard

Can't put a space in app name

Open drownload opened this issue 1 month ago • 2 comments

Pre-flight checklist

  • [x] I have read the contribution documentation for this project.
  • [x] I agree to follow the code of conduct that this project uses.
  • [x] I have searched the issue tracker for a bug that matches the one I want to file, without success.

Forge version

7.10.2

Electron version

v38.6.0

Operating system

macOS 26.1 (25B78)

Last known working Forge version

No response

Expected behavior

Allow a space in productName

Actual behavior

Fails to copy app to dmg with a space in the productName

Steps to reproduce

Put a space in productName and make

Additional information

npm run make

[email protected] make electron-forge make -- --arch=universal --platform=darwin

✔ Checking your system ✔ Loading configuration ✔ Resolving make targets › Making for the following targets: , ✔ Running package command ✔ Preparing to package application ✔ Running packaging hooks ✔ Running generateAssets hook ✔ Running prePackage hook ✔ Packaging application ✔ Packaging for arm64 on darwin [15m6s] ✔ Running postPackage hook ✔ Running preMake hook ❯ Making distributables ✖ Making a dmg distributable for darwin/arm64 › Command failed: cp -R /Users/daniel/Documents/un_out/Uber Ninja-darwin-arm64/Uber Ninja.app /Volumes/Uber Ninja/Uber Ninja.app cp: /Volumes/Uber Ninja/Uber Ninja.app: Operation not permitted ✖ Making a zip distributable for darwin/arm64 ◼ Running postMake hook

package.json:

{ "name": "uberninjaftw", "productName": "Uber Ninja", "version": "2.3.4", "main": "src/main.js",

etc...

note this also fails if I put it in forge config:

module.exports = { outDir: '/Users/daniel/Documents/un_out', packagerConfig: { name: "Uber Ninja",

Also..... Im not sure if I should put this in a separate issue but it would be great to also support special characters in the app name. It should be Über Ninja not Uber Ninja

drownload avatar Nov 20 '25 14:11 drownload

This setup has always worked for me: https://www.electronforge.io/config/makers/squirrel.windows#spaces-in-the-app-name

nikwen avatar Nov 24 '25 20:11 nikwen

I want to solve it,,

dvansari65 avatar Nov 26 '25 02:11 dvansari65