Closed JensTimmerman closed 2 years ago
Seems like one needs to pass --target
somewhere to prevent napi-rs from trying to call rustup
https://github.com/napi-rs/napi-rs/issues/869
Applying this patch made this work for me, since I am on an x86_64 linux gnu system, I don't have enought rust/npm experience to try and find a cross platform solution here :s
diff --git a/desktop_native/package.json b/desktop_native/package.json
index 7fe4c970..4d0dc7e7 100644
--- a/desktop_native/package.json
+++ b/desktop_native/package.json
@@ -4,7 +4,7 @@
"description": "",
"main": "index.node",
"scripts": {
- "build": "napi build dist --platform --release --js true",
+ "build": "napi build dist --platform --release --js true --target x86_64-unknown-linux-gnu",
"build:debug": "napi build dist --platform --js true",
"build:cross-platform": "node build.js",
"test": "cargo test"
Hmm, we should probably update the documentation that rustup
is expected to be installed if it fails without it.
Hi @JensTimmerman,
Apologies for the constant changes in build instructions. We discovered an issue with compiling rust for windows 32bit and decided to hold off on the migration to rust for now.
Steps To Reproduce
Follow the build instructions in the readme:
Expected Result
native_desktop is built
Actual Result
This fails with:
Screenshots or Videos
No response
Additional Context
I'm running this on Fedora 35, rustup doesn't seem to be in the fedora repositories.
Operating System
Linux
Operating System Version
Fedora 35
Installation method
Other
Build Version
master: 3862a19571b10899ebb8c97c0b4bd3bc175f0070