isDbug windows bug fixed
This commit is contained in:
parent
cd19462002
commit
eec7858628
2 changed files with 5 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ part of 'app_data.dart';
|
|||
AppData _$AppDataFromJson(Map<String, dynamic> json) => AppData()
|
||||
..name = json['name'] as String
|
||||
..version = json['version'] as String
|
||||
..gitCount = json['gitCount'] as int?
|
||||
..gitCount = (json['gitCount'] as num?)?.toInt()
|
||||
..gitHash = json['gitHash'] as String
|
||||
..buildDate = json['buildDate'] as String;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import 'package:dart_framework/utils/path.dart';
|
|||
import 'package:yaml/yaml.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
const int intMax = 0x7FFFFFFFFFFFFFFF;
|
||||
const int intMax = 0x7FFFFFFFFFFFFFFF;
|
||||
const int intMin = -0x8000000000000000;
|
||||
|
||||
bool isDebug = true;
|
||||
|
|
@ -23,12 +23,12 @@ Future initialize(String name, String appID) async {
|
|||
appName = name;
|
||||
scriptPath = Platform.script.toFilePath(windows: Platform.isWindows);
|
||||
executablePath = Platform.executable;
|
||||
isDebug = path.basename(Platform.resolvedExecutable) == 'dart';
|
||||
isDebug =
|
||||
path.basenameWithoutExtension(Platform.resolvedExecutable) == 'dart';
|
||||
userPath = await Path.userPath;
|
||||
dataPath = await Path.dataPath;
|
||||
}
|
||||
|
||||
|
||||
Map<String, List<String>?> envArguments(List<String> arguments) {
|
||||
var dic = <String, List<String>?>{};
|
||||
var list = <String>[];
|
||||
|
|
@ -132,4 +132,4 @@ Future<Uint8List?> readFileByte(String filePath) async {
|
|||
});
|
||||
c.complete(bytes);
|
||||
return c.future;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue