|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | <PropertyGroup> |
| 3 | + <RootNamespace>LanguageSupport</RootNamespace> |
| 4 | + <AssemblyName>LanguageSupport</AssemblyName> |
3 | 5 | <TargetFramework>net472</TargetFramework> |
4 | 6 | <AssemblyTitle>LanguageSupport</AssemblyTitle> |
5 | 7 | <Product>LanguageSupport</Product> |
| 8 | + <Description>A Hollow Knight Mod</Description> |
6 | 9 | <Copyright>Copyright © 2021</Copyright> |
7 | 10 | <AssemblyVersion>2.0.0.0</AssemblyVersion> |
8 | 11 | <FileVersion>2.0.0.0</FileVersion> |
9 | 12 | <OutputPath>bin\$(Configuration)\</OutputPath> |
10 | 13 | <LangVersion>latest</LangVersion> |
11 | 14 | <Nullable>enable</Nullable> |
12 | | - <HollowKnightRefs>../../../GOG/Hollow Knight 1.5 Modded/Hollow Knight_Data/Managed/</HollowKnightRefs> |
| 15 | + <HollowKnightRefs>E:/GOG/Hollow Knight 1.5 Modded/Hollow Knight_Data/Managed/</HollowKnightRefs> |
| 16 | + <ExportDir>E:/Github_Projects/__Exports/</ExportDir> |
13 | 17 | </PropertyGroup> |
14 | 18 | <Target Name="CopyMod" AfterTargets="PostBuildEvent"> |
15 | | - <Copy SourceFiles="$(TargetPath)" DestinationFolder="E:\GOG\Hollow Knight 1.5 Modded\Hollow Knight_Data\Managed\Mods\" SkipUnchangedFiles="true" /> |
16 | | - <Copy SourceFiles="$(TargetDir)$(TargetName).pdb" DestinationFolder="E:\GOG\Hollow Knight 1.5 Modded\Hollow Knight_Data\Managed\Mods\" SkipUnchangedFiles="true" /> |
| 19 | + <RemoveDir Directories="$(ExportDir)/$(TargetName)/" /> |
| 20 | + <MakeDir Directories="$(ExportDir)/$(TargetName)/" /> |
| 21 | + <MakeDir Directories="$(ExportDir)/$(TargetName)/zip/" /> |
| 22 | + <Copy SourceFiles="$(TargetPath);$(TargetDir)/$(TargetName).pdb" DestinationFolder="$(HollowKnightRefs)/Mods/" /> |
| 23 | + <Copy SourceFiles="$(TargetPath)" DestinationFolder="$(ExportDir)/$(TargetName)/" /> |
| 24 | + <Copy SourceFiles="ReadMe.md;$(TargetPath);$(TargetDir)/$(TargetName).pdb" DestinationFolder="$(ExportDir)/$(TargetName)/zip/" /> |
| 25 | + <ZipDirectory SourceDirectory="$(ExportDir)/$(TargetName)/zip/" DestinationFile="$(ExportDir)/$(TargetName)/$(TargetName).zip" /> |
| 26 | + <RemoveDir Directories="$(ExportDir)/$(TargetName)/zip/" /> |
| 27 | + |
| 28 | + <GetFileHash Files="$(ExportDir)/$(TargetName)/$(TargetName).zip" Algorithm="SHA256"> |
| 29 | + <Output TaskParameter="Items" ItemName="FilesWithHashes" /> |
| 30 | + </GetFileHash> |
| 31 | + <WriteLinesToFile File="$(ExportDir)/$(TargetName)/SHA.txt" Lines="@(FilesWithHashes->'%(FileHash)')" Overwrite="true" Encoding="UTF-8"/> |
17 | 32 | </Target> |
18 | 33 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
19 | 34 | <SignAssembly>true</SignAssembly> |
|
0 commit comments