-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Mapeo Desktop Installer doesn't run on 32bit machines #305
Comments
@okdistribute Testing windows artifact from build 5843279 and build 58488207 results in following error on Windows 32 machine. |
I was able to get more information by using Looks like the issue is with leveldown. We are one of the 1.9% here that need to create our own build.. Level/leveldown#554 |
@okdistribute Yup, That reminds me that I had to rebuild leveldown package before building mapeo-desktop on 32bit machines. |
@arky what did you type to rebuild? |
To build mapeo-desktop on 32bit machine you had rebuild leveldown without 64-bit flag.
Please refer to this bug #237 |
Which version of leveldown are y'all on? The above command suggests on older version. On latest leveldown (5.x) there should be no need to rebuild. If node is 32-bit, then on |
@vweevers Thanks for responding. I realize now that you're right, we updated to leveldown 5.x since #237 was filed. That's what I thought but still running into issues... I've been doing this on GitHub Actions and experimenting on this PR |
@vweevers okay, doing this it seems to not have rebuilt leveldown, and says it can't find a native build for win32 I noticed here in the log for this build that electron-builder is rebuilding native modules for leveldown, but I wonder if that's failing silently? |
Could be, because those electron tools are geared towards the older I've got a Windows machine and can maybe help, given some instructions on how to get started on |
@vweevers thanks, that would be great. We're a small team and non-profit so any help is greatly appreciated. Mapeo Desktop should work out of the box with |
With:
I see that There's also a postinstall script that (deep breath) runs TLDR, The Next up is packaging; I'll try that in your |
@okdistribute After running Side note: the
|
The 32-bit leveldown build correctly gets included in And... the installed Mapeo also works! It stops working when I re-enable asar though. Another problem is that |
Given the amount of tools involved, it might take some time and thought to properly fix rebuilding. So I'm leaning towards just adding a 32-bit prebuild to |
Adds 194kb (or 406kb unpacked) to our npm package size. Previously removed because only 2% of installs were on 32-bit Windows and we agreed those users could compile from source. However, there is currently a gap in electron(-builder) tooling when used on native addons that use node-gyp-build: these addons don't get automatically recompiled. Though we don't need that anymore for runtimes (the builds are compatible with both node and electron) our users do need it when targeting multiple CPU architectures. Ref digidem/mapeo-desktop#305 Ref electron-userland/electron-builder#4370 Ref #554
Thanks so much for investigating. Adding 32-bit builds to leveldown will really help the electron ecosystem! |
This will be fixed in the next release, but you can try it now in this build https://github.com/digidem/mapeo-desktop/actions/runs/67706742 |
@okdistribute Tested on windows 32 bit machine. Works like a charm. |
Update (FYI): |
nice thanks @vweevers ! |
Trying to run the Mapeo Desktop (5.x) installer on 32 bit Windows 10 Pro machines results in '64-bit Windows is required' message. I have tested multiple versions of latest installers.
Most NGO/CSO organization have legacy machines hence the need for 32bit installers. I had managed to download and install Atom editor installer on this machine to check if electronJS applications are supported.
The text was updated successfully, but these errors were encountered: