diff --git a/lib/utils/system_util.dart b/lib/utils/system_util.dart index 29ede53..120e9e1 100644 --- a/lib/utils/system_util.dart +++ b/lib/utils/system_util.dart @@ -10,16 +10,19 @@ import 'package:path/path.dart' as path; const int intMax = 0x7FFFFFFFFFFFFFFF; const int intMin = -0x8000000000000000; +bool isDebug = true; String userPath = ''; String dataPath = ''; String projectName = ''; Future initialize() async { + isDebug = path.basename(Platform.resolvedExecutable) == 'dart'; userPath = await Path.userPath; dataPath = await Path.dataPath; projectName = await getProjectName(); } + Map?> envArguments(List arguments) { var dic = ?>{}; var list = [];