mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	chore(nx/server): resource dir
This commit is contained in:
		
							parent
							
								
									0e8b1f31b3
								
							
						
					
					
						commit
						b44876ee08
					
				@ -2,8 +2,8 @@ import log from "./log.js";
 | 
			
		||||
import path from "path";
 | 
			
		||||
import fs from "fs";
 | 
			
		||||
 | 
			
		||||
import { fileURLToPath } from "url";
 | 
			
		||||
export const RESOURCE_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../assets");
 | 
			
		||||
import { getResourceDir } from "./utils.js";
 | 
			
		||||
export const RESOURCE_DIR = path.join(getResourceDir(), "assets");
 | 
			
		||||
 | 
			
		||||
// where the "trilium" executable is
 | 
			
		||||
const ELECTRON_APP_ROOT_DIR = path.resolve(RESOURCE_DIR, "../..");
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user