diff --git a/lib/consts.dart b/lib/consts.dart index 7785d83..ddcfbd7 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -1,3 +1,3 @@ class Consts { - static const VERSION = "1.1.112424.2344"; + static const VERSION = "1.1.112524.0020"; } diff --git a/lib/structs/settings.dart b/lib/structs/settings.dart index a76c62b..f779d4c 100644 --- a/lib/structs/settings.dart +++ b/lib/structs/settings.dart @@ -305,8 +305,10 @@ class Settings { } Future sendRconCommand(String command) async { + bool wine = await requiresWine(); + try { - Process.run("/app/rcon", [ + Process.run(wine ? "/app/rcon" : "C:\\rcon.exe", [ "-H", "127.0.0.1", "-p", diff --git a/pubspec.yaml b/pubspec.yaml index 037d5f8..9ada8ab 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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.112424+2344 +version: 1.1.112524+0020 environment: sdk: ">=3.1.4 <4.0.0"