If the path contains Chinese characters, packaging will fail.
See original GitHub issue- Electron-Builder Version: ^22.11.7
- Node Version: v14.17.5
- Electron Version: ^13.1.8
- Electron Type (current, beta, nightly): current
- Target: win64
Some output information:
OKAY take it away `electron-builder`
• electron-builder version=22.11.7 os=10.0.19042
• loaded configuration file=D:\wewin\南宁-部队仓储\operation\electron-builder.yml
• description is missed in the package.json appPackageFile=D:\wewin\南宁-部队仓储\operation\package.json
• author is missed in the package.json appPackageFile=D:\wewin\南宁-部队仓储\operation\package.json
• writing effective config file=build\builder-effective-config.yaml
• packaging platform=win32 arch=x64 electron=13.1.8 appOutDir=build\win-unpacked
• asar usage is disabled — this is strongly not recommended solution=enable asar and use asarUnpack to unpack files that must be externally available
• asar usage is disabled — this is strongly not recommended solution=enable asar and use asarUnpack to unpack files that must be externally available
• building target=nsis file=build\南宁部队操作台 Setup 1.0.0.exe archs=x64 oneClick=true perMachine=false
⨯ C:\Users\32694\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\Bin\makensis.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Output:
Command line defined: "APP_ID=com.make-id.nanning-operation desk"
Command line defined: "APP_GUID=edb3f8ab-771f-5770-b0e8-31209c075f66"
Command line defined: "UNINSTALL_APP_KEY=edb3f8ab-771f-5770-b0e8-31209c075f66"
Command line defined: "PRODUCT_NAME=�������Ӳ���̨"
Command line defined: "PRODUCT_FILENAME=�������Ӳ���̨"
Command line defined: "APP_FILENAME=electron-vite-template"
Command line defined: "APP_DESCRIPTION="
Command line defined: "VERSION=1.0.0"
Command line defined: "PROJECT_DIR=D:\wewin\����-���Ӳִ�\operation"
Command line defined: "BUILD_RESOURCES_DIR=D:\wewin\����-���Ӳִ�\operation\build"
Command line defined: "APP_PACKAGE_NAME=electron-vite-template"
Command line defined: "MUI_ICON=D:\wewin\����-���Ӳִ�\operation\build\icons\icon.ico"
Command line defined: "MUI_UNICON=D:\wewin\����-���Ӳִ�\operation\build\icons\icon.ico"
Command line defined: "APP_64=D:\wewin\����-���Ӳִ�\operation\build\electron-vite-template-1.0.0-x64.nsis.7z"
Command line defined: "APP_64_NAME=electron-vite-template-1.0.0-x64.nsis.7z"
Command line defined: "APP_64_HASH=D5DDD8A5D7FBE27A303C289EC2C2EA745C0108BF83B1459FAD93E36C4E2F33F272AA6D370395E98D47E4B48C8B7436B06340EBDCD9DB8905DA84A15BBFEC5032"
Command line defined: "APP_PRODUCT_FILENAME=�������Ӳ���̨"
Command line defined: "APP_INSTALLER_STORE_FILE=electron-vite-template-updater\installer.exe"
Command line defined: "COMPRESSION_METHOD=7z"
Command line defined: "ONE_CLICK"
Command line defined: "RUN_AFTER_FINISH"
Command line defined: "SHORTCUT_NAME=�������Ӳ���̨"
Command line defined: "UNINSTALL_DISPLAY_NAME=�������Ӳ���̨ 1.0.0"
Command line defined: "ESTIMATED_SIZE=192725"
Command line defined: "COMPRESS=auto"
Command line defined: "BUILD_UNINSTALLER"
Command line defined: "UNINSTALLER_OUT_FILE=D:\wewin\����-���Ӳִ�\operation\build\__uninstaller-nsis-electron-vite-template.exe"
Processing config: C:\Users\32694\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\nsisconf.nsh
Processing script file: "<stdin>" (ACP)
Error output:
!include: could not find: "D:\wewin\南宁-部队仓储\operation\node_modules\app-builder-lib\templates\nsis\include\StdUtils.nsh"
Error in script "<stdin>" on line 1 -- aborting creation process
failedTask=build stackTrace=Error: C:\Users\32694\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\Bin\makensis.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Unable to access /root/project when the project directory path ...
Some testing revealed that when the project tree's path contains Chinese characters the /root/project sshfs mount will be inaccessible, ...
Read more >r - readxl::read_excel() read excel file path containing Chinese ...
I used readxl::read_excel() and xlsx::read.xlsx() to read the path of excel file containing Chinese characters respectively, the former returned ...
Read more >How can I succeed in including a few Chinese ideograph text ...
I am not sure whether this can help, but I use the following: %%% %%% Load CJKutf8 to be able to print Chinese...
Read more >Dynamic Input Tool - Cannot read Chinese Character...
Hello, I have a query that contains Chinese characters for searching ... Input Tool is not able to read Chinese Char and turned...
Read more >why does this program write a chinese character!?
It's all a question of encoding. You're using the platform default encoding to write. And I can't tell you what encoding you're using...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Willing to give this patch file a shot using patch-package?
app-builder-lib+22.14.2.patchThis seem not works for me