compile build bat file
Posted: Fri Jan 16, 2015 3:12 am
So, as I have noted lately, I am trying to automate my entire server process.
So far, I have shown how I start my servers with the user access control now fixed: viewtopic.php?f=16&t=2429
and how I export important tables: viewtopic.php?f=16&t=2428
I have now completed a simple batch that will allow you to single click build all servers. Please note though, this is mostly to help guide people who want to be able to automate their process. You will need to modify the code to match your specifics.
I am using: Windows 7 64 bit, so if you are using 32 bit, you will need to change the folder to your MSBuild.exe file.
I am using: Microsoft Visual Express 2013, so if you are using a different Visual Express suite, please check the path of your MSBuild.exe file. If you are using a different compiler, I apologize, but I am not sure how to build it from the command line.
Also remember, you need to point to your DSP project download folder, which will probably be different from my D:\PlayOnline\SquareEnix\Final Fantasy XI server\darkstar\win32\DSConnect-server\
I build Debug by default, because I have noticed I get strange behavior sometimes with Release builds, so if you want Release, change
to:
So here is the code, but please remember, this is only for reference. If you want to automate your build, you will need to make changes as appropriate:
Eventually, I hope to put all of these steps together in a single step for everyone.
So far, I have shown how I start my servers with the user access control now fixed: viewtopic.php?f=16&t=2429
and how I export important tables: viewtopic.php?f=16&t=2428
I have now completed a simple batch that will allow you to single click build all servers. Please note though, this is mostly to help guide people who want to be able to automate their process. You will need to modify the code to match your specifics.
I am using: Windows 7 64 bit, so if you are using 32 bit, you will need to change the folder to your MSBuild.exe file.
I am using: Microsoft Visual Express 2013, so if you are using a different Visual Express suite, please check the path of your MSBuild.exe file. If you are using a different compiler, I apologize, but I am not sure how to build it from the command line.
Also remember, you need to point to your DSP project download folder, which will probably be different from my D:\PlayOnline\SquareEnix\Final Fantasy XI server\darkstar\win32\DSConnect-server\
I build Debug by default, because I have noticed I get strange behavior sometimes with Release builds, so if you want Release, change
Code: Select all
/p:Configuration=Debug
Code: Select all
/p:Configuration=Release
Code: Select all
"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "D:\PlayOnline\SquareEnix\Final Fantasy XI server\darkstar\win32\DSConnect-server\DSConnect-server.sln" /p:Configuration=Debug
"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "D:\PlayOnline\SquareEnix\Final Fantasy XI server\darkstar\win32\DSGame-server\DSGame-server.sln" /p:Configuration=Debug
"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "D:\PlayOnline\SquareEnix\Final Fantasy XI server\darkstar\win32\DSSearch-server\DSSearch-server.sln" /p:Configuration=Debug