Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit696c792

Browse files
committed
Find other binaries via compiler-info.json
1 parentf477ca7 commit696c792

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎server/src/utils.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ let findBinary = async (
9292
returnpath.join(config.extensionConfiguration.platformPath,binary);
9393
}
9494

95-
if(projectRootPath!==null&&binary==="bsc.exe"){
95+
if(projectRootPath!==null){
9696
try{
9797
constcompilerInfo=path.resolve(
9898
projectRootPath,
@@ -101,7 +101,13 @@ let findBinary = async (
101101
constcontents=awaitfsAsync.readFile(compilerInfo,"utf8");
102102
constcompileInfo=JSON.parse(contents);
103103
if(compileInfo&&compileInfo.bsc_path){
104-
returncompileInfo.bsc_path;
104+
constbsc_path=compileInfo.bsc_path;
105+
if(binary==="bsc.exe"){
106+
returnbsc_path;
107+
}else{
108+
constbinary_path=path.join(path.dirname(bsc_path),binary);
109+
returnbinary_path;
110+
}
105111
}
106112
}catch{}
107113
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp