我正在尝试打包电子反应应用程序。 我正在为此目的使用电子助力器。
电子版本= 4.0.0 电子生成器版本= 20.19.1
我遇到错误了,
错误:退出代码:1.命令失败:C:\ Users \ tak \ AppData \ Local \ electron-builder \ Cache \ winCodeSign \ winCodeSign-2.4.0 \ rcedit-ia32.exe C:\ Users \ tak \桌面\ okta示例\新示例\ OktaReactWeb \ oktareactwebapp \ dist \ win-unpacked \ oktareactwebapp.exe --set-version-string FileDescription oktareactwebapp --set-version-string ProductName oktareactwebapp --set-version-string LegalCopyright©2019 Mangesh Tak --set-file-version 0.1.0 --set-product-version 0.1.0.0 --set-version-string InternalName oktareactwebapp --set-version-string OriginalFilename --set-version-string CompanyName Mangesh Tak 致命错误:无法提交更改
请在我的package.json下找到电子生成器构建配置,
"build": {
"appId": "com.example.electron-cra",
"files": [
"build/**/*",
"node_modules/**/*"
],
"directories": {
"buildResources": "assets"
},
"extraMetadata": {
"main": "build/electron.js"
}
},
"author": "MT",
"homepage": "./",
"main": "public/electron.js",
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"electron": "electron .",
"electron-dev": "concurrently \"npm run start\" \"wait-on http://localhost:3000 && electron .\"",
"preelectron-pack": "npm run build",
"electron-pack": "build -c.extraMetadata.main=build/electron.js",
"build-win": "npm run build && electron-builder --win portable --x64"
},
我正在运行“ npm run electronic-pack”进行包装。
我在这里做什么错了?