|
9 | 9 | <Platforms>x64;ARM64</Platforms> |
10 | 10 | <UseWPF>True</UseWPF> |
11 | 11 | <Description>Keep Your Computer Sound & Safe!</Description> |
12 | | - <Company>rkttu.com</Company> |
13 | | - <Product>TableCloth</Product> |
14 | 12 | <ProductName>TableCloth</ProductName> |
15 | | - <Copyright>(c) rkttu.com, 2021</Copyright> |
16 | | - <Version>1.14.0.0</Version> |
17 | | - <PackageProjectUrl>https://yourtablecloth.github.io</PackageProjectUrl> |
18 | | - <RepositoryUrl>https://github.com/yourtablecloth/TableCloth</RepositoryUrl> |
19 | | - <RepositoryType>git</RepositoryType> |
20 | 13 | <PackageTags>TableCloth</PackageTags> |
21 | 14 | <SignAssembly>False</SignAssembly> |
22 | 15 | <LangVersion>preview</LangVersion> |
|
93 | 86 | <LastGenOutput>Resources.Designer.cs</LastGenOutput> |
94 | 87 | </EmbeddedResource> |
95 | 88 | </ItemGroup> |
| 89 | + <Target Name="UpdateManifestVersion" BeforeTargets="PreBuild"> |
| 90 | + <PropertyGroup> |
| 91 | + <ManifestVersion Condition="'$(Version)' != ''">$(Version)</ManifestVersion> |
| 92 | + <ManifestVersion Condition="'$(ManifestVersion)' == '' OR !$(ManifestVersion.Contains('.'))">1.0.0.0</ManifestVersion> |
| 93 | + <ManifestVersion Condition="!$(ManifestVersion.Contains('.'))">$(ManifestVersion).0.0.0</ManifestVersion> |
| 94 | + </PropertyGroup> |
| 95 | + <WriteLinesToFile File="$(IntermediateOutputPath)app.manifest" |
| 96 | + Lines="$([System.IO.File]::ReadAllText('$(ProjectDir)app.manifest').Replace('$version$', '$(ManifestVersion)'))" |
| 97 | + Overwrite="true" /> |
| 98 | + <ItemGroup> |
| 99 | + <None Remove="app.manifest" /> |
| 100 | + </ItemGroup> |
| 101 | + <PropertyGroup> |
| 102 | + <ApplicationManifest>$(IntermediateOutputPath)app.manifest</ApplicationManifest> |
| 103 | + </PropertyGroup> |
| 104 | + </Target> |
| 105 | + |
96 | 106 | <Target Name="PreBuild" BeforeTargets="PreBuildEvent"> |
97 | 107 | <Exec Command="git.exe rev-parse HEAD > "$(ProjectDir)commit.txt"

dir "$(SolutionDir)Artifacts\Spork.zip"
copy /y "$(SolutionDir)Artifacts\Spork.zip" "$(ProjectDir)Spork.zip"
dir "$(ProjectDir)Spork.zip"

curl.exe -L https://yourtablecloth.app/TableClothCatalog/Images.zip -o "$(ProjectDir)Images.zip"
" /> |
98 | 108 | </Target> |
|
0 commit comments