Open supertick opened 1 week ago
Can you try with v26.0.0-alpha.6?
I contributed some changes upstream to electron/rebuild
and electron-builder updated that dependency in one of the recent alpha versions. Note: you shouldn't need npx electron-rebuild -f --arch=arm64
in your build script.
Thanks,
I tried v26.0.0-alpha.6, both with npx electron-rebuild -f --arch=arm64 && and without.
Always with electron-builder --linux AppImage --arm64
Same behavoir, it appears to correctly build the executable but, the AppImage release contains x86-64 binaries
Can you share a minimum reproducible repo that I could take a look at? This sounds like a bug in @electron/rebuild
that I could investigate and fix upstream.
To hopefully unblock you, you can use the previous app-builder-bin implementation, set nativeRebuilder: legacy
in your config.
The project is currently green shield in github - https://github.com/RobotLab-X/robotlab-x This is the package.json defining the arm 64 build: https://github.com/RobotLab-X/robotlab-x/blob/main/server/package.json
Steps to reproduce should be straight forward: on a linux x86 64 machine:
git clone https://github.com/RobotLab-X/robotlab-x.git
cd robotlab-x
yarn install-all
yarn build-client
yarn install-client
yarn package-linux-arm64
An AppImage will get created in dist/packages. It will be executable on arm64 - but the file extracted in /tmp/.mount ..../resources/app.asar.unpacked/node_modules /Release/bindings.node will be a x86-64 binary
Thanks for looking into this :)
At the moment I have a self-hosted git runner that's building it on a raspi since the cross compiler deployment isn't working
Trying to cross compile on a github action runner for arm64 (raspi) for serialport bindings
The rebuild reports arm64
The AppImage is arm64 but the serialport/bindings are x86: