mirror of
https://github.com/rmroc451/TweaksAndThings.git
synced 2025-12-16 09:19:37 -06:00
increment version number
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<!-- Try to find the directory on our own -->
|
||||
<GameManagedDir Condition="'$(GameManagedDir)' == ''">$([System.IO.Directory]::GetDirectories(`$(GameDir)`, `*_Data`)[0])\Managed</GameManagedDir>
|
||||
|
||||
|
||||
<!-- Copy the mod to the game directory -->
|
||||
<GameModDir Condition="'$(GameModDir)' == ''">$(GameDir)/Mods/$(AssemblyName)</GameModDir>
|
||||
<OutDir Condition="'$(Configuration)' == 'Debug'">$(GameModDir)/</OutDir>
|
||||
@@ -11,9 +11,9 @@
|
||||
|
||||
<!-- Replace the default version if something was set for it -->
|
||||
<PropertyGroup Condition="'$(AssemblyVersion)' == '' OR '$(MajorVersion)' != '' OR '$(MinorVersion)' != ''">
|
||||
<MajorVersion Condition="'$(MajorVersion)' == ''">0</MajorVersion>
|
||||
<MinorVersion Condition="'$(MinorVersion)' == ''">1</MinorVersion>
|
||||
<PatchVersion Condition="'$(PatchVersion)' == ''">8</PatchVersion>
|
||||
<MajorVersion Condition="'$(MajorVersion)' == ''">1</MajorVersion>
|
||||
<MinorVersion Condition="'$(MinorVersion)' == ''">0</MinorVersion>
|
||||
<PatchVersion Condition="'$(PatchVersion)' == ''">0</PatchVersion>
|
||||
<AssemblyVersion>$(MajorVersion).$(MinorVersion).$(PatchVersion)</AssemblyVersion>
|
||||
<FileVersion>$(AssemblyVersion)</FileVersion>
|
||||
<ProductVersion>$(AssemblyVersion)</ProductVersion>
|
||||
@@ -44,15 +44,15 @@
|
||||
|
||||
<!-- Assure the output path exists -->
|
||||
<MakeDir Directories="$(PublishPath)" />
|
||||
|
||||
|
||||
<!-- Remove the old Mods directory, and Zips file if any is lying around -->
|
||||
<ItemGroup>
|
||||
<OldZips Include="$(PublishPath)/$(AssemblyName)_*.zip" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<RemoveDir Directories="$(ModsDirectory)" ContinueOnError="true" />
|
||||
<Delete Files="@(OldZips)" />
|
||||
|
||||
|
||||
<!-- Create the Mods directory again -->
|
||||
<MakeDir Directories="$(ModDirectory)" />
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
<!-- Zip it up -->
|
||||
<Exec Command="powershell -Command "Compress-Archive -Path '$(ModsDirectory)' -Destination '$(ZipName)'"" />
|
||||
|
||||
|
||||
<!-- Move them to the game directory -->
|
||||
<Copy SourceFiles="@(OutputFiles)" DestinationFolder="$(GameModDir)" />
|
||||
</Target>
|
||||
|
||||
Reference in New Issue
Block a user