temp 경로 수정
This commit is contained in:
parent
cc0433b256
commit
c7163245e3
1 changed files with 5 additions and 5 deletions
|
|
@ -94,7 +94,7 @@ class ProcessExecutor {
|
|||
var arg = '$exe ${args.join(' ')}';
|
||||
var processData = ProcessData();
|
||||
if (Platform.isMacOS || Platform.isWindows) {
|
||||
workspace = workspace ?? Directory.current.path;
|
||||
workspace = workspace ?? Directory.systemTemp.path;
|
||||
print('Execute Shell: $arg');
|
||||
try {
|
||||
processData.processValue =
|
||||
|
|
@ -116,7 +116,7 @@ class ProcessExecutor {
|
|||
try {
|
||||
var processData = ProcessData();
|
||||
if (Platform.isMacOS || Platform.isLinux) {
|
||||
workspace = workspace ?? Directory.current.path;
|
||||
workspace = workspace ?? Directory.systemTemp.path;
|
||||
var file = File('$workspace/$tempFileName');
|
||||
processData.file = file;
|
||||
print('Execute Shell: ${file.path} \n ${shell.toString()}');
|
||||
|
|
@ -132,7 +132,7 @@ class ProcessExecutor {
|
|||
print(e);
|
||||
}
|
||||
} else if (Platform.isWindows) {
|
||||
workspace = workspace ?? Directory.current.path;
|
||||
workspace = workspace ?? Directory.systemTemp.path;
|
||||
var file = File('$workspace/$tempFileName');
|
||||
processData.file = file;
|
||||
print('Execute Shell: ${file.path} \n ${shell.toString()}');
|
||||
|
|
@ -163,7 +163,7 @@ class ProcessExecutor {
|
|||
var c = Completer<ProcessResult>();
|
||||
ProcessResult? processResult;
|
||||
if (Platform.isMacOS || Platform.isLinux) {
|
||||
workspace = workspace ?? Directory.current.path;
|
||||
workspace = workspace ?? Directory.systemTemp.path;
|
||||
var file = File('$workspace/$tempFileName');
|
||||
print('Execute Shell: ${file.path} \n ${shell.toString()}');
|
||||
file.createSync();
|
||||
|
|
@ -186,7 +186,7 @@ class ProcessExecutor {
|
|||
}
|
||||
c.complete(processResult);
|
||||
} else if (Platform.isWindows) {
|
||||
workspace = workspace ?? Directory.current.path;
|
||||
workspace = workspace ?? Directory.systemTemp.path;
|
||||
var file = File('$workspace/$tempFileName');
|
||||
print('Execute Bat: ${file.path} \n ${shell.toString()}');
|
||||
file.createSync();
|
||||
|
|
|
|||
Loading…
Reference in a new issue