mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
Tagged Version
This commit is contained in:
@@ -67,6 +67,10 @@
|
||||
<PropertyChanged />
|
||||
</Weavers>
|
||||
</WeaverConfiguration>
|
||||
<AssemblyVersion>4.25.1</AssemblyVersion>
|
||||
<FileVersion>4.25.1</FileVersion>
|
||||
<InformationalVersion>v4.25.1-alpha.1.d009.ga3f04669d</InformationalVersion>
|
||||
<Version>$(AssemblyVersion)</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -166,4 +170,4 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="newlogo.ico" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@@ -20,4 +20,8 @@
|
||||
<Copy SourceFiles="@(MaaResourceFiles)" DestinationFiles="$(MSBuildProjectDirectory)\..\..\$(Platform)\$(Configuration)\resource\%(RecursiveDir)%(Filename)%(Extension)" SkipUnchangedFiles="true" UseHardlinksIfPossible="true" />
|
||||
<Copy SourceFiles="@(MaaPythonBinding)" DestinationFiles="$(MSBuildProjectDirectory)\..\..\$(Platform)\$(Configuration)\Python\%(RecursiveDir)%(Filename)%(Extension)" SkipUnchangedFiles="true" UseHardlinksIfPossible="true" />
|
||||
</Target>
|
||||
<Target Name="TaggifyVersion" BeforeTargets="Build">
|
||||
<Exec Command="powershell ./TaggifyVersion.ps1" />
|
||||
<Message Text="Taggify Version" Importance="High" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
8
src/SyncRes/TaggifyVersion.ps1
Normal file
8
src/SyncRes/TaggifyVersion.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
$tag = (Invoke-Expression "git describe --abbrev=0 --tags") -replace '.*?/', ''
|
||||
$tag -match '\d+\.\d+\.\d+'
|
||||
(Get-Content ..\MaaWpfGui\MaaWpfGui.csproj) |
|
||||
ForEach-Object {
|
||||
$_ -replace '(?<a>(<(Assembly|File)Version>)).*?(?<b>(</(Assembly|File)Version>))', ('${a}' + $Matches[0] + '${b}')`
|
||||
-replace '(?<a>(<InformationalVersion>)).*?(?<b>(</InformationalVersion>))', ('${a}' + $tag + '${b}')
|
||||
} |
|
||||
Set-Content ..\MaaWpfGui\MaaWpfGui.csproj
|
||||
Reference in New Issue
Block a user