* removed Poost build steps because they are not cross platform

* changed invokation of blz binary to work on mono
This commit is contained in:
bjoern
2015-04-25 16:33:58 +02:00
parent 376977779f
commit 6d70d95e2a
2 changed files with 4 additions and 10 deletions

View File

@@ -131,7 +131,7 @@ namespace WfcReplay
}
catch
{
throw new IOException("Could not write file to disk.");
throw new IOException("Could not write file to disk ("+fileName+").");
}
finally
{
@@ -380,8 +380,8 @@ namespace WfcReplay
void decryptBlz(ref MemoryStream file, string fileName)
{
writeTempFile(fileName, file);
ProcessStartInfo psi = new ProcessStartInfo("blz.exe", "-d " + "\"" + tempFolderPath + fileName + "\"");
string blzexe = (System.IO.Path.DirectorySeparatorChar == '/') ? "blz" : "blz.exe";
ProcessStartInfo psi = new ProcessStartInfo(blzexe, "-d " + "\"" + tempFolderPath + fileName + "\"");
psi.WorkingDirectory = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
psi.WindowStyle = ProcessWindowStyle.Hidden;
Process blz = Process.Start(psi);

View File

@@ -48,12 +48,6 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>if "$(ConfigurationName)" == "Release" del /Q $(TargetDir)*
copy $(SolutionDir)BLZ\* $(TargetDir)*
rename $(TargetDir)license.txt blz_license.txt
copy $(SolutionDir)readme.md $(TargetDir)readme.txt
copy $(SolutionDir)changelog.md $(TargetDir)changelog.txt
copy $(SolutionDir)license.txt $(TargetDir)license.txt</PreBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
@@ -62,4 +56,4 @@ copy $(SolutionDir)license.txt $(TargetDir)license.txt</PreBuildEvent>
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>