File tree Expand file tree Collapse file tree
packages/scaffold/src/core/tester Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { execSync } from "node:child_process" ;
22import process from "node:process" ;
3+ import { CACHE_DIR } from "src/constant.js" ;
34import { isDebug , isLinux } from "std-env" ;
45import { Xvfb } from "xvfb-ts" ;
56import { LOG_LEVEL , logger } from "../../utils/logger.js" ;
@@ -84,9 +85,11 @@ export async function installZoteroLinux() {
8485 }
8586
8687 logger . debug ( "Installing Zotero..." ) ;
87- execSync ( "wget -O ./scaffold/cache/zotero.tar.bz2 'https://www.zotero.org/download/client/dl?platform=linux-x86_64&channel=beta'" , { stdio : "pipe" } ) ;
88- execSync ( "tar -xvf ./scaffold/cache/zotero.tar.bz2" , { stdio : "pipe" } ) ;
88+ execSync ( `cd ${ CACHE_DIR } ` ) ;
89+ execSync ( "wget -O zotero.tar.bz2 'https://www.zotero.org/download/client/dl?platform=linux-x86_64&channel=beta'" , { stdio : "pipe" } ) ;
90+ execSync ( "tar -xvf zotero.tar.bz2" , { stdio : "pipe" } ) ;
8991
9092 // Set Environment Variable for Zotero Bin Path
91- process . env . ZOTERO_PLUGIN_ZOTERO_BIN_PATH = `${ process . cwd ( ) } /./scaffold/cache/Zotero_linux-x86_64/zotero` ;
93+ process . env . ZOTERO_PLUGIN_ZOTERO_BIN_PATH = `${ process . cwd ( ) } /Zotero_linux-x86_64/zotero` ;
94+ execSync ( "cd -" ) ;
9295}
You can’t perform that action at this time.
0 commit comments