mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
feat(dx/desktop): support raw NixOS via LD_LIBRARY_PATH injection
This commit is contained in:
@@ -32,6 +32,17 @@ function rebuildNativeDependencies() {
|
||||
buildPath: desktopProjectRoot,
|
||||
electronVersion
|
||||
});
|
||||
|
||||
if (isNixOS()) {
|
||||
console.log("Patching ELF...");
|
||||
|
||||
|
||||
|
||||
return execSync(`nix-shell -p auto-patchelf gcc.cc.lib --run "auto-patchelf --paths node_modules/better-sqlite3/build/Release/better_sqlite3.node --libs ${libStdPath}"`, {
|
||||
cwd: desktopProjectRoot,
|
||||
stdio: "inherit"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function determineElectronVersion() {
|
||||
|
||||
Reference in New Issue
Block a user