pas2js: run params: set working directory

This commit is contained in:
mattias 2024-01-14 12:39:04 +01:00
parent b38b88bdb5
commit ba509cfde3
2 changed files with 2 additions and 0 deletions

View File

@ -1717,6 +1717,7 @@ begin
RunMode:=AProject.RunParameters.GetOrCreate('default');
RunMode.UseLaunchingApplication:=true;
RunMode.LaunchingApplicationPathPlusParams:='"$(Pas2jsElectron)" .';
RunMode.WorkingDirectory:='$(ProjPath)';
Result:=mrOk;
end;

View File

@ -99,6 +99,7 @@ Procedure SetDefaultNodeRunParams(RunParams : TAbstractRunParamsOptionsMode);
begin
ResetRunParams(RunParams);
RunParams.LaunchingApplicationPathPlusParams:='"$(Pas2JSNodeJS)" "$MakeDir($(ProjPath))$NameOnly($(ProjFile)).js"';
RunParams.WorkingDirectory:='$(ProjPath)';
end;
Procedure SetPasJSCompileOptions(CompOpts: TLazCompilerOptions;