Guten Tag zusammen,
ich habe ein Script in Python geschrieben, welches für euch die Client-Binary compilen wird. Man braucht dies dann nicht mehr über VisualStudio UI zu machen sondern wenn man bloß den Compile Vorgang will ---> mein Script.
Code:
# -*- coding: iso-8859-1 -*-
# written by BlackEndless
import os
from time import gmtime, strftime
#---- change nothing here ----
#-----------------------------
WinUser = os.getlogin()
User = "C:\\Users\\" + WinUser
#-----------------------------
# You need to change this configuration.
MSBuild = "12.0" # msbuild version
exeConfig = "Distribute" # Debug,Release,Distribute
directPath = "\\Desktop\\-_-\\BlackEndless3\\source\\" # here your Path after: C:\Users\Name\...\\
compilerExe = "C:\\Program Files (x86)\\MSBuild\\" + MSBuild + "\\Bin"
outputPath = User + "\\Desktop" # .exe/.bin Output Path
#-------------------------------------------------------------------
srcBinaryPath = User + directPath
# Print Systeminformation and Compile M2 Binary Source
print("-------------------------")
print(strftime("%d.%m.%Y :: %H:%M:%S", gmtime()))
print(" ")
print("Welcome, " + WinUser + "!")
print("Your Binary will stored on: " + outputPath)
print("Selected Solution: " + srcBinaryPath + "client.sln")
print("Build Configuation ->" + exeConfig)
print("-------------------------")
input("Press Enter to continue.. ")
print(srcBinaryPath)
os.system("cd " + compilerExe + " && MSBuild.exe " + srcBinaryPath + "client.sln /t:Build /p:Configuration=" + exeConfig + ";Platform=Win32")
os.system("cd " + srcBinaryPath + "\\binary && move Metin2.exe " + outputPath)
input("Press Enter to exit.. ")
Zur richtigen Einstellung des Scripts:
Code:
MSBuild = "12.0"
exeConfig = "Distribute"
directPath = "\\Desktop\\-_-\\BlackEndless3\\source\\"
compilerExe = "C:\\Program Files (x86)\\MSBuild\\" + MSBuild + "\\Bin"
outputPath = User + "\\Desktop"
MSBuild --> möchte natürlich eure Version haben, in meinem Fall, da ich VS 2013 verwende hab ich hier die 12.0
exeConfig --> Ihr könnt euch ne Exe ausspucken lassen welche eine Debugging Funktion hat in dem ihr hier in das Feld "
Debug" eintragt. Wenn ihr ne normale Exe wollte, kommt in das Feld "
Distribution" oder "
Release" hinein.
directPath --> Ist euer Pfad nach "
C:\Users\Benutzer" wo eure
client.sln gespeichert ist. (C:\users\name) wird automatisch hinzugefügt.
outputPath --> Wo eure fertig compilte Binary am Ende landen soll.
compilerExe(optional) --> Sofern eure MSBuild wo anders installiert sein sollte, muss der Pfad dementsprechend angepasst werden, i.d.R ist dieser Pfad Standard.
Dieses Script soll denen helfen, welche sich auf Visual Studio 2013 verlassen und deren Trial leider jedesmal abgelaufen ist.
Ich hoffe der Eine oder Andere kann es brauchen, ich hab das Script soweit getestet, meine src wurde compiled und das ohne VS.
Es kann bedenkenlos ausgeführt werden! Kein Virus oder sonst was

Ich werde natürlich weiter schauen, was sich so dazu kombinieren lässt und des Script dann aktualisieren.
Mit freundlichen Grüßen, Endless