Switch to wine, add winetricks
This commit is contained in:
parent
0c30b3f820
commit
0ae098318a
10 changed files with 104 additions and 79 deletions
|
@ -24,12 +24,10 @@ void main() async {
|
|||
PathHelper steamCmd =
|
||||
PathHelper.builder(helper.build()).resolve("steamcmd").mkdir();
|
||||
PathHelper game = PathHelper.builder(helper.build()).resolve("game").mkdir();
|
||||
PathHelper proton = PathHelper(pth: helper.build()).resolve("proton").mkdir();
|
||||
|
||||
settings.base_path = helper.build();
|
||||
settings.game_path = game.build();
|
||||
settings.steamcmd_path = steamCmd.build();
|
||||
settings.proton_path = proton.build();
|
||||
|
||||
print("Setup of local system variables completed");
|
||||
|
||||
|
@ -38,7 +36,11 @@ void main() async {
|
|||
|
||||
print("Initializing SteamCMD");
|
||||
await settings.initializeSteamCmd();
|
||||
print("Initialized Steamcmd and Proton");
|
||||
print("Initialized Steamcmd");
|
||||
|
||||
print("Running winetricks");
|
||||
await settings.initializeWine();
|
||||
print("Finished installing needed DLLs");
|
||||
|
||||
print("Checking for game server updates...");
|
||||
await settings.RunUpdate(valid: false);
|
||||
|
@ -69,7 +71,17 @@ void main() async {
|
|||
}
|
||||
|
||||
print("Starting up server manager server wrapper");
|
||||
await PacketServer.start();
|
||||
File logFile = File(PathHelper.builder(settings.getServerPath())
|
||||
.resolve("ConanSandbox")
|
||||
.resolve("Saved")
|
||||
.resolve("Logs")
|
||||
.resolve("ConanSandbox.log")
|
||||
.build());
|
||||
await logFile.create(recursive: true);
|
||||
|
||||
tailAndPrint(logFile);
|
||||
|
||||
await PacketServer.start(settings.inst?.serverSettings.WrapperPort ?? 25306);
|
||||
|
||||
print("Server stopping");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue