App name cannot have special path characters in it
See original GitHub issueWith a package.json with
"name": "@mycompany/test-project"
ENOENT: no such file or directory, rename ‘/var/folders/8y/ycvpbtbn6nx_552nqm0hkllc0000gn/T/electron-packager/darwin-x64/@mycompany/test-project-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper’ -> ‘/var/folders/8y/ycvpbtbn6nx_552nqm0hkllc0000gn/T/electron-packager/darwin-x64/@mycompany/test-project-darwin-x64/Electron.app/Contents/Frameworks/Electron Helper.app/Contents/MacOS/@mycompany/test-project Helper’
Which version of electron-packager are you using?
Using electron-packager version 6.0.0
What CLI arguments are you passing? Alternatively, if you are using the API, what parameters are you passing to the
packager()
function?
Using command:
electron-packager . --platform=darwin --arch=x64
This happens no matter which OS I try on and no matter what platform target I use.
What version of Electron are you building with?
v0.36.9
What is the host platform are you running electron-packager on?
OS X, Linux
What target platform(s)/architecture(s) are you building for?
OS X, Linux, Windows
Please provide either a failing testcase or detailed steps to reproduce your problem.
Steps to reproduce:
- Name your package to something with a ‘/’ in it
- Try to run packager
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:11 (8 by maintainers)
Top GitHub Comments
As a workaround, you should set
productName
inpackage.json
totest-project
(or something without a slash).I made a first cut at fixing this in #455. It’s a bit more involved than you’d think, particularly since there are a lot of files that use the Electron app’s name. (And I want to have unit tests for as much of it as possible.)