mirror of
https://github.com/Prof9/WfcReplay.git
synced 2026-09-07 09:35:35 -05:00
* removed Poost build steps because they are not cross platform
* changed invokation of blz binary to work on mono
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user