如何解决电子制造商无法识别 Bitbucket 管道上的酒
我正在使用托管在 Bitbucket 上的 electron-builder
构建一个电子应用程序。
我正在使用管道在 master 分支上的每个新提交上构建 Linux 和 Windows 版本,使用提供的 Docker 映像,其中应包含所有必要的系统依赖项:
bitbucket-pipelines.yml:
image: electronuserland/builder:wine
pipelines:
branches:
master:
- step:
name: "Build and Upload"
caches:
- node
script:
- npm i
- npm run release
package.json:
"scripts": {
"build": "rollup -c","release": "npm run build && electron-builder -lw --x64",...
},"build": {
"icon": "public/favicon.png","productName": "...","files": [
"public/**/*","main.js"
],"win": {
"target": [
"nsis"
]
},"linux": {
"target": [
"AppImage"
]
}
}
但每次执行npm run release
时都会出错:
⨯ wine is required,please see https://electron.build/multi-platform-build#linux
• Above command failed,retrying 0 more times
⨯ /opt/atlassian/pipelines/agent/build/node_modules/app-builder-bin/linux/x64/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
我尝试使用常规节点 Docker 映像并手动安装 wine:
bitbucket-pipelines.yml:
image: node
pipelines:
branches:
master:
- step:
name: "Build and Upload"
caches:
- node
script:
- apt-get update
- apt-get install wine -y
- dpkg --add-architecture i386
- apt-get update
- apt-get install wine32 -y
- npm i
- npm run release
但我一直收到同样的错误。
我如何解决这个问题,并使用 Bitbucket 管道自动构建版本?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。