各位大神帮忙,electron 在mac 下打包 win 应用总是报错
electron吧
全部回复
仅看楼主
level 2
俊模堂 楼主
报错内容
errorOut=wine: failed to initialize: dlopen(/tmp/wine-stage/wine/usr/lib/wine/ntdll.dll.so, 258): image not found
请问这个怎么解决
{
"name": "my-electron-app",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"start": "electron .",
"test": "echo \"Error: no test specified\" && exit 1",
"build-w": "electron-builder -w",
"build-m": "electron-builder -m",
"build-l": "electron-builder -l"
},
"keywords": [],
"author": "xxxx",
"license": "ISC",
"devDependencies": {
"electron": "^11.1.1",
"electron-builder": "^22.9.1"
},
"build": {
"appId": "com.demo.app",
"productName": "xxxxx",
"copyright": "Copyright © 2020",
"directories": {
"output": "./dist"
},
"electronDownload": {
"mirror": "https://npm.taobao.org/mirrors/electron/"
},
"win": {
"icon": "./assets/img/xxx.ico",
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
]
},
"mac": {
"icon": "./assets/img/xxx.icns",
"target": ["dmg", "zip"]
},
"linux": {
"icon": "./assets/img/xxx.icns"
},
"nsis": {
"oneClick": false,
"guid": "xxxx",
"perMachine": true,
"allowElevation": true,
"allowToChangeInstallationDirectory": true,
"installerIcon": "./assets/img/xxx.ico",
"uninstallerIcon": "./assets/img/xxx.ico",
"installerHeaderIcon": "./assets/img/xxx.ico",
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "xxxx"
}
}
}
2020年12月25日 01点12分 1
level 1
您现在解决了没
2022年12月20日 06点12分 2
解决了, 但是好久了也忘了当时怎么弄的了
2022年12月20日 06点12分
1