Fixed issue executing manually provided tribes2gsi.exe

This commit is contained in:
Carl Manzi 2021-01-03 18:31:46 -05:00
parent bdfa95bfa5
commit bf1ad09490
2 changed files with 4 additions and 6 deletions

View file

@ -2,13 +2,10 @@
Scripts to install and run a Tribes 2 server on Linux with Wine. Scripts to install and run a Tribes 2 server on Linux with Wine.
## about ## about
t2server automates the installation of Tribes 2 and the TribesNEXT patch to run under wine on Linux. 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.
After installation, it provides systemd service units and Python scripts for the purpose of managing
your server.
## prerequisites ## prerequisites
t2server has a handful of dependencies which are not automatically handled at this time. Before you 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:
run the setup script, run the following commands depending on your distro:
### Debian 10; Ubuntu 20.04 LTS ### Debian 10; Ubuntu 20.04 LTS
``` ```

3
setup
View file

@ -116,7 +116,8 @@ if __name__ == "__main__":
needed_files=[] needed_files=[]
if isfile(f"{pwd}/winbin/tribes2gsi.exe"): if isfile(f"{pwd}/winbin/tribes2gsi.exe"):
pinfo("tribes2gsi.exe found.") 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"): elif isfile(f"{pwd}/winbin/tribes2_gsi.exe"):
pinfo("tribes2_gsi.exe found.") pinfo("tribes2_gsi.exe found.")
installer_exe = f"{pwd}/winbin/tribes2_gsi.exe" installer_exe = f"{pwd}/winbin/tribes2_gsi.exe"