Add post-build script for package tools

This commit is contained in:
CreepyCrafter24 2020-03-08 09:34:42 +01:00
parent 0135092ba2
commit 2ac3118d92
2 changed files with 49 additions and 55 deletions

View File

@ -24,7 +24,6 @@ namespace UpTool_build_tool
string targetFileName = args[2];
string packageFile = args.Length > 3 ? args[3] : Path.Combine(targetDir, "package.zip");
string tempPath = Path.Combine(args.Length > 4 ? args[4] : Path.GetTempPath(), "UpTool2Pkg");
string quote = "\"";
Console.WriteLine("Removing previous files...");
if (File.Exists(packageFile))
File.Delete(packageFile);

View File

@ -45,12 +45,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PostBuildEvent>"$(TargetPath)" build "$(TargetDir)\" "$(TargetPath)"</PostBuildEvent>
</PropertyGroup>
</Project>