From 7d1de4f46e219884402b037d0a24a44d423b3db7 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 2 Jan 2025 17:09:48 -0800 Subject: make it possible to build this project with NixOS --- local.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'local.sh') diff --git a/local.sh b/local.sh index c26ff20..dac9829 100755 --- a/local.sh +++ b/local.sh @@ -1,9 +1,8 @@ #!/bin/bash -read -p "Enter the ROAM_PATH: " ROAM_PATH -read -p "Enter the ROAM_DB_FILE: " ROAM_DB_FILE -ROAM_DB_PATH=$ROAM_PATH/$ROAM_DB_FILE -ROAM_IMG_PATH=$ROAM_PATH/img +ROAM_DB_PATH=~/.emacs.d/org-roam.db +ROAM_IMG_PATH=~/.emacs.d/img +ROAM_PATH=~/org/website/mindmap # If org-roam-ui directory does not exists, clone the org-roam-ui repository. if [ ! -d "org-roam-ui" ]; then @@ -20,7 +19,7 @@ popd # Generate data for org-roam-ui npm install npm run generate:graphdata --script_params=$ROAM_DB_PATH -./create_notes.sh $ROAM_PATH +bash create_notes.sh $ROAM_PATH npm run generate:search npm install fuse.js node build-index.js @@ -36,7 +35,7 @@ fi pushd org-roam-ui yarn install pushd standalone -./build-standalone-server.sh ../.. +bash build-standalone-server.sh ../.. if [ -d "../../out" ]; then rm -rf ../../out fi -- cgit