Skip to content

Commit

Permalink
Added AssemblyFileVersion
Browse files Browse the repository at this point in the history
Updated version file for 1.12
  • Loading branch information
linuxgurugamer committed Oct 14, 2021
1 parent f9d3733 commit b0588f3
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 41 deletions.
Binary file modified .vs/ThroughTheEyes/v15/sqlite3/storage.ide
Binary file not shown.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ChangeLog

2.0.3.1
Added AssemblyFileVersion
Updated version file for 1.12

2.0.3
Added InstallChecker
Updated AssemblyVersion
Expand Down
9 changes: 7 additions & 2 deletions GameData/ThroughTheEyes/ThroughTheEyes.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@
"MAJOR": 2,
"MINOR": 0,
"PATCH": 3,
"BUILD": 0
"BUILD": 1
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 12,
"PATCH": 2
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 8,
"MINOR": 12,
"PATCH": 0
}
}
9 changes: 7 additions & 2 deletions ThroughTheEyes.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@
"MAJOR": 2,
"MINOR": 0,
"PATCH": 3,
"BUILD": 0
"BUILD": 1
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 12,
"PATCH": 2
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 8,
"MINOR": 12,
"PATCH": 0
}
}
25 changes: 0 additions & 25 deletions ThroughTheEyes.version.orig

This file was deleted.

3 changes: 2 additions & 1 deletion ThroughTheEyes/AssemblyVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@

using System.Reflection;

[assembly: AssemblyVersion("2.0.3.0")]
[assembly: AssemblyFileVersion("2.0.3.1")]
[assembly: AssemblyVersion("2.0.3.1")]
3 changes: 2 additions & 1 deletion ThroughTheEyes/AssemblyVersion.tt
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@

using System.Reflection;

[assembly: AssemblyVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
[assembly: AssemblyFileVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
[assembly: AssemblyVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
32 changes: 23 additions & 9 deletions ThroughTheEyes/ThroughTheEyes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,32 @@
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
start /D D:\Users\jbb\github\Through-The-Eyes /WAIT deploy.bat $(TargetDir) $(TargetFileName)
set KSPDIR=$(KSPDIR)

if $(ConfigurationName) == Release (
start /D D:\Users\jbb\github\Through-The-Eyes /WAIT buildRelease.bat $(TargetDir) $(TargetFileName)
)</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>
set textTemplatingPath="%25ProgramFiles(x86)%25\Microsoft Visual Studio\2017\Community\Common7\IDE \texttransform.exe"
IF "%25KSPDIR%25"=="" (

ECHO Configuration error - KSPDIR not specified in project.

ECHO Either set KSPDIR environment variable or edit BetterLoadSaveGame.Common.props

PAUSE

GOTO DONE

)

%25textTemplatingPath%25 "$(ProjectDir)AssemblyVersion.tt"</PreBuildEvent>
start /D $(SolutionDir) /WAIT deploy.bat $(TargetDir) $(TargetFileName) $(TargetName)

if $(ConfigurationName) == Release (

start /D $(SolutionDir) /WAIT buildRelease.bat $(TargetDir) $(TargetFileName) $(TargetName)

)
</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>"$(DevEnvDir)\texttransform.exe" "$(ProjectDir)AssemblyVersion.tt"

</PreBuildEvent>
</PropertyGroup>
</Project>
1 change: 0 additions & 1 deletion buildRelease.bat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ rem Copy files to GameData locations

copy /Y "%1%2" "%GAMEDATA%\%GAMEDIR%\Plugins"
copy /Y %VERSIONFILE% %GAMEDATA%\%GAMEDIR%
copy /Y ..\MiniAVC.dll %GAMEDATA%\%GAMEDIR%

if "%LICENSE%" NEQ "" copy /y %LICENSE% %GAMEDATA%\%GAMEDIR%
if "%README%" NEQ "" copy /Y %README% %GAMEDATA%\%GAMEDIR%
Expand Down
5 changes: 5 additions & 0 deletions deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ set GAMEDIR=ThroughTheEyes
set GAMEDATA="GameData\"
set VERSIONFILE=%GAMEDIR%.version

set DP0=r:\dp0\kspdev

copy /Y "%1%2" "%GAMEDATA%\%GAMEDIR%\Plugins"
copy /Y "%1%3".pdb "%GAMEDATA%\%GAMEDIR%\Plugins"

copy /Y %VERSIONFILE% %GAMEDATA%\%GAMEDIR%

xcopy /y /s /I %GAMEDATA%\%GAMEDIR% "%H%\GameData\%GAMEDIR%"
xcopy /y /s /I %GAMEDATA%\%GAMEDIR% "%DP0%\GameData\%GAMEDIR%"

0 comments on commit b0588f3

Please sign in to comment.