mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
chore(dx/edit-docs): de-nxify
This commit is contained in:
17
scripts/electron-start.mts
Normal file
17
scripts/electron-start.mts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { execSync } from "child_process";
|
||||
import { getElectronPath, isNixOS } from "./utils.mjs";
|
||||
|
||||
const LD_LIBRARY_PATH = isNixOS() && execSync("nix eval --raw nixpkgs#gcc.cc.lib").toString("utf-8") + "/lib";
|
||||
|
||||
execSync(`${getElectronPath()} ${process.argv[2]}`, {
|
||||
stdio: "inherit",
|
||||
env: {
|
||||
...process.env,
|
||||
NODE_OPTIONS: "--import tsx",
|
||||
NODE_ENV: "development",
|
||||
TRILIUM_ENV: "dev",
|
||||
TRILIUM_RESOURCE_DIR: "../server/src",
|
||||
BETTERSQLITE3_NATIVE_PATH: "node_modules/better-sqlite3/build/Release/better_sqlite3.node",
|
||||
LD_LIBRARY_PATH
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user