Merge branch 'master' of toki-labs.com:/Volumes/Data2/git/dart_framework

This commit is contained in:
leedongmyung[desktop] 2023-11-05 11:16:30 +09:00
commit 264bf46387

View file

@ -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();