isDbug windows bug fixed

This commit is contained in:
leedongmyung 2025-01-01 19:27:05 +09:00
parent cd19462002
commit eec7858628
2 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@ part of 'app_data.dart';
AppData _$AppDataFromJson(Map<String, dynamic> json) => AppData() AppData _$AppDataFromJson(Map<String, dynamic> json) => AppData()
..name = json['name'] as String ..name = json['name'] as String
..version = json['version'] as String ..version = json['version'] as String
..gitCount = json['gitCount'] as int? ..gitCount = (json['gitCount'] as num?)?.toInt()
..gitHash = json['gitHash'] as String ..gitHash = json['gitHash'] as String
..buildDate = json['buildDate'] as String; ..buildDate = json['buildDate'] as String;

View file

@ -7,7 +7,7 @@ import 'package:dart_framework/utils/path.dart';
import 'package:yaml/yaml.dart'; import 'package:yaml/yaml.dart';
import 'package:path/path.dart' as path; import 'package:path/path.dart' as path;
const int intMax = 0x7FFFFFFFFFFFFFFF; const int intMax = 0x7FFFFFFFFFFFFFFF;
const int intMin = -0x8000000000000000; const int intMin = -0x8000000000000000;
bool isDebug = true; bool isDebug = true;
@ -23,12 +23,12 @@ Future initialize(String name, String appID) async {
appName = name; appName = name;
scriptPath = Platform.script.toFilePath(windows: Platform.isWindows); scriptPath = Platform.script.toFilePath(windows: Platform.isWindows);
executablePath = Platform.executable; executablePath = Platform.executable;
isDebug = path.basename(Platform.resolvedExecutable) == 'dart'; isDebug =
path.basenameWithoutExtension(Platform.resolvedExecutable) == 'dart';
userPath = await Path.userPath; userPath = await Path.userPath;
dataPath = await Path.dataPath; dataPath = await Path.dataPath;
} }
Map<String, List<String>?> envArguments(List<String> arguments) { Map<String, List<String>?> envArguments(List<String> arguments) {
var dic = <String, List<String>?>{}; var dic = <String, List<String>?>{};
var list = <String>[]; var list = <String>[];
@ -132,4 +132,4 @@ Future<Uint8List?> readFileByte(String filePath) async {
}); });
c.complete(bytes); c.complete(bytes);
return c.future; return c.future;
} }