From bf1ad09490bec25698aebd8b2b51dc4e3106c60a Mon Sep 17 00:00:00 2001 From: Carl Manzi Date: Sun, 3 Jan 2021 18:31:46 -0500 Subject: [PATCH] Fixed issue executing manually provided tribes2gsi.exe --- README.md | 7 ++----- setup | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4a8f1e1..daa2cbe 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,10 @@ Scripts to install and run a Tribes 2 server on Linux with Wine. ## about -t2server automates the installation of Tribes 2 and the TribesNEXT patch to run under wine on Linux. -After installation, it provides systemd service units and Python scripts for the purpose of managing -your server. +t2server automates the installation of Tribes 2 and the TribesNEXT patch to run under wine on Linux. After installation, it provides systemd service units and Python scripts for the purpose of managing your server. ## prerequisites -t2server has a handful of dependencies which are not automatically handled at this time. Before you -run the setup script, run the following commands depending on your distro: +t2server has a handful of dependencies which are not automatically handled at this time. Before you run the setup script, run the following commands depending on your distro: ### Debian 10; Ubuntu 20.04 LTS ``` diff --git a/setup b/setup index 533426e..661b90c 100755 --- a/setup +++ b/setup @@ -116,7 +116,8 @@ if __name__ == "__main__": needed_files=[] if isfile(f"{pwd}/winbin/tribes2gsi.exe"): pinfo("tribes2gsi.exe found.") - installer_exe = f"{pwd}/winbin/tribes2gsi.exe" + rename(f"{pwd}/winbin/tribes2gsi.exe",f"{pwd}/winbin/tribes2_gsi.exe") + installer_exe = f"{pwd}/winbin/tribes2_gsi.exe" elif isfile(f"{pwd}/winbin/tribes2_gsi.exe"): pinfo("tribes2_gsi.exe found.") installer_exe = f"{pwd}/winbin/tribes2_gsi.exe"