Skip to content

Can't put a space in app name #4055

@drownload

Description

@drownload

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • 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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions