Attempt again to fix windows launch

This commit is contained in:
zontreck 2024-11-26 01:55:23 -07:00
parent 6507d6678e
commit 5d5d43ed06
4 changed files with 7 additions and 9 deletions

View file

@ -1,3 +1,3 @@
class Consts {
static const VERSION = "1.1.112524.1703";
static const VERSION = "1.1.112624.0154";
}

View file

@ -167,8 +167,7 @@ class StateMachine {
.build();
if (Platform.isWindows) {
PROC = await Process.start(executable, conanArgs,
workingDirectory: settings.getServerPath());
runWindows(executable, conanArgs);
} else {
runDetachedWine(executable, conanArgs, settings.getServerPath());
}

View file

@ -13,11 +13,6 @@ Future<bool> requiresWine() async {
Future<void> runWine(String command, List<String> argx) async {
bool requiredWine = await requiresWine();
if (Platform.isWindows) {
await runDetachedWine(command, argx, Directory.current.path);
return;
}
Settings settings = Settings();
Directory dir = Directory(settings.getWinePrefixPath());
@ -52,6 +47,10 @@ Future<void> runWine(String command, List<String> argx) async {
}
}
Future<void> runWindows(String command, List<String> args) async {
runDetachedWine(command, args, Settings.Instance.getServerPath());
}
Future<void> runWinetrick(String trick) async {
if (!(await requiresWine())) return;

View file

@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.1.112524+1703
version: 1.1.112624+0154
environment:
sdk: ">=3.1.4 <4.0.0"