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 targetFileName = args[2];
string packageFile = args.Length > 3 ? args[3] : Path.Combine(targetDir, "package.zip"); 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 tempPath = Path.Combine(args.Length > 4 ? args[4] : Path.GetTempPath(), "UpTool2Pkg");
string quote = "\"";
Console.WriteLine("Removing previous files..."); Console.WriteLine("Removing previous files...");
if (File.Exists(packageFile)) if (File.Exists(packageFile))
File.Delete(packageFile); File.Delete(packageFile);

View File

@ -45,12 +45,7 @@
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <PropertyGroup>
Other similar extension points exist, see Microsoft.Common.targets. <PostBuildEvent>"$(TargetPath)" build "$(TargetDir)\" "$(TargetPath)"</PostBuildEvent>
<Target Name="BeforeBuild"> </PropertyGroup>
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project> </Project>