-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pack the application as RPM/deb format under the ARM64 environment #3901
Comments
same problem github: https://github.com/nashaofu/dingtalk |
I've found a solution which can partially solve this problem.
You can get
Then, before the packaging procedure, just set the environment variable by running
and the packaging procedure runs with no error. I could only say the problem is partially but not fully solved. However, if you use Debian, it's all fine. |
Build successfully using the following commands before building. sudo apt-get update
sudo apt-get install --no-install-recommends -y gcc-multilib g++-multilib
sudo apt-get install --no-install-recommends -y rpm my travis-ci configuration dist: trusty
sudo: required
language: node_js
node_js:
- '10'
matrix:
include:
- os: linux
before_install: # 为了支持打包rpm格式的包
- sudo apt-get update
- sudo apt-get install --no-install-recommends -y gcc-multilib g++-multilib
- sudo apt-get install --no-install-recommends -y rpm
- os: osx
cache:
directories:
- node_modules
install:
- yarn install
script:
- yarn lint
- yarn build
- yarn release
branches:
only:
- master |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Thanks for your solution. Any suggestion will be welcome! Thanks in advance. |
@saifeiLee YES, The same with me! The deb package cannot be installed after use system fpm to package. Chinese: 目前正在兼容 Arm64 架构下的 UOS 系统,这个问题应该是最后一步了,关注进度、一起解决这个问题。 |
How can I access the latest progress about this problem? Thank you. Chinese: 请问我如何获取最新进度呢?感谢🙏 |
@saifeiLee This seems to be a problem with the latest fpm version, I am trying to downgrade fpm. |
@saifeiLee After I downgraded the fpm to v1.9.3, it worked for me! The package can be installed now! |
Chinese: 我也在处理UOS,你有解决这个问题吗 |
I have the same problem,with arm64 UOS in use electron-builder to package a deb app.
|
请问您解决了arm64下linux打包成deb的方式吗? |
I think easiest way to resolve this would be someone to contribute to the electron-builder-binaries repo an arm64 ruby binary. Electron builder would then download and use an arch-specific bin. Develar could then perform a release of it and I can promptly update electron-builder |
I also package and install my application successfully on UOS.However, The application I installed can't run when i double click it. |
@BSoD-Ultimate thanks, it works for me on ubuntu 20.04 arm64. |
Hello! The main problem was with fpm package that require electron during build I am very thankful to this topics: The main repo of aarm64 build, my hero! Main longread explanation how it works: So, the solution is to build fpm by yourself and build any electron apps for aarm64 after.
|
The company I worked is running a project developing a client program based on Electron. The customer requires us to deploy the client on computers having ARM64 architecture. Now we package the client on an aarch64-based server running openSUSE.
So far, there are no problems when packaging the client into an AppImage. However, we found out that the customer's computer only accepts programs installed as rpm/deb format due to unknown security reasons. We added
rpm
anddeb
in thelinux
section in theelectron-builder
configuration, attempting to package the client into an rpm/deb package on the same aarch64-based computer. The packaging procedure failed as follows:Obviously, electron-builder downloaded the package
fpm
compiled into the wrong format. I could not find the ARM64 version of thefpm
package in the release page of https://github.com/electron-userland/electron-builder-binaries/ . So what should I do to build our project into an rpm/deb package under the ARM64 condition? Can we get the source of thefpm
project then manually compile it for the electron-builder's use?NOTE: The project contains some native code which cannot be re-written in JS. So compiling the application on the computer that uses the architecture required is the most convenient way. Cross-compiling is more difficult.
The text was updated successfully, but these errors were encountered: