Closed lily-Robot closed 4 weeks ago
但我一使用 npx electron-builder ⨯ Invalid configuration object. electron-builder 25.0.5 has been initialized using
You are still using upstream electron-builder. This fork only published 24.10.0 and 24.13.3. And you should use 24.13.3 because the published 24.10.0 lacks some changes.
As the README says, you should override the dependency resolution of three packages instead of installing @riscv-forks/electron-builder
manually. https://github.com/riscv-forks/electron-builder?tab=readme-ov-file#usage
我比较想弄明白,是否是需要使用其他的参数,或者是我在打包时要手动提供一些额外的文件。
You need to manually override electron binary url to this repo(https://github.com/riscv-forks/electron-riscv-releases) or download an electron riscv64 binary from that repo and manually specify the electron dist zip to use.
I see . I'll practice what you said later .
First of all, thank you very much, if I am successful, can I put this method in my blog, With this issues and this warehouse? Chinese-English bilingual
Happy coding!
if I am successful, can I put this method in my blog, With this issues and this warehouse?
Sure.
And FYI this is what Arch Linux RISC-V do when packaging bitwarden: https://github.com/felixonmars/archriscv-packages/blob/604e0e6f864d54f65e8654f2e09752540e360697/bitwarden/riscv64.patch#L44-L50
This is really helpful, but I am still in class, so I should be Able to get results in the evening.
Thank you very much. Following your method, I have successfully compiled it. Tomorrow, I will implement and test it on the RISC-V platform, although it seems that AppImage packaging is not yet supported.
您好,我最近想通过您维护的 riscv-forks/electron-builder 来尝试实现一些 electron 项目的 riscv 架构支持,但我目前遇到了一些无法解决的报错,以下是我的操作步骤,如有错误的地方,希望您能指正;
package.json
文件中"electron-builder": "24.10.0"
,以确保在这个版本下没有其他的依赖冲突;npm
安装的模块,删除了package.json
里的electron-builder
,然后使用 riscv-forks/electron-builder 里提供的npm i @riscv-forks/electron-builder
安装这个包;package.json
文件中配置 build dist 的部分如下但我一使用
npx electron-builder
,就报错了,报错如下我比较想弄明白,是否是需要使用其他的参数,或者是我在打包时要手动提供一些额外的文件。