Skip to content

Commit

Permalink
Updated version file for KSP 1.12
Browse files Browse the repository at this point in the history
 Added AssemblyFileVersion
  • Loading branch information
linuxgurugamer committed Jul 19, 2021
1 parent ae53793 commit 7922164
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 72 deletions.
7 changes: 6 additions & 1 deletion BAM.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
"MAJOR": 1,
"MINOR": 3,
"PATCH": 3,
"BUILD": 3
"BUILD": 4
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 12,
"PATCH": 0
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
Expand Down
20 changes: 0 additions & 20 deletions BAM.version.orig

This file was deleted.

5 changes: 5 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ ChangeLog

1.3.3.3
Really did the MiniAVC update

1.3.3.4
Updated version file for KSP 1.12
Added AssemblyFileVersion

24 changes: 9 additions & 15 deletions GameData/BAM/BAM.version
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
{
"NAME": "BAM",
"URL": "http://ksp.spacetux.net/avc/BAM",
"DOWNLOAD" : "https://github.com/linuxgurugamer/CIT/releases",
"GITHUB" :
{
"USERNAME" : "linuxgurugamer",
"REPOSITORY" : "CIT"
"DOWNLOAD": "https://github.com/linuxgurugamer/CIT/releases",
"GITHUB": {
"USERNAME": "linuxgurugamer",
"REPOSITORY": "CIT"
},
"VERSION": {
"MAJOR": 1,
"MINOR": 3,
"PATCH": 2,
"PATCH": 3,
"BUILD": 4
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 5,
"PATCH": 1
"MINOR": 12,
"PATCH": 0
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 5,
"PATCH": 1
},
"KSP_VERSION_MAX": {
"MAJOR": 1,
"MINOR": 5,
"PATCH": 99
"MINOR": 8,
"PATCH": 0
}
}
15 changes: 0 additions & 15 deletions GameData/BAM/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
Revival of Marce's old mods:

BAM

1.3.2.0
Updted for 1.4.1

1.3.2.1
Fixed config file path

1.3.2.2
Updated version info

1.3.2.3
Version bump for 1.5 rebuild

1.3.2.4
Fixed typo in .version file
3 changes: 2 additions & 1 deletion KSP-BAM-Master/AssemblyVersion.tt
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@

using System.Reflection;

[assembly: AssemblyVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
[assembly: AssemblyVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
[assembly: AssemblyFileVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
9 changes: 4 additions & 5 deletions KSP-BAM-master/App.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>

<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/></startup>
</configuration>
3 changes: 2 additions & 1 deletion KSP-BAM-master/AssemblyVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

using System.Reflection;

[assembly: AssemblyVersion("1.3.2.5")]
[assembly: AssemblyVersion("1.3.3.4")]
[assembly: AssemblyFileVersion("1.3.3.4")]
33 changes: 23 additions & 10 deletions KSP-BAM-master/KSP-BlastAwesomenessModifier.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CIT_BlastAwesomenessModifier</RootNamespace>
<AssemblyName>BAM</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<AssemblyName>BAMCont</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
Expand Down Expand Up @@ -77,18 +77,31 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
set textTemplatingPath="%25ProgramFiles(x86)%25\Microsoft Visual Studio\2017\Community\Common7\IDE \texttransform.exe"

%25textTemplatingPath%25 "$(ProjectDir)AssemblyVersion.tt"</PreBuildEvent>
<PreBuildEvent>"$(DevEnvDir)\texttransform.exe" "$(ProjectDir)AssemblyVersion.tt"</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>start /D D:\Users\jbb\github\CIT /WAIT deploy.bat $(TargetDir) $(TargetFileName)
<PostBuildEvent>
set KSPDIR=$(KSPDIR)

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

if $(ConfigurationName) == Release (
start /D D:\Users\jbb\github\CIT /WAIT buildRelease.bat $(TargetDir) $(TargetFileName)
)
</PostBuildEvent>

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

if $(ConfigurationName) == Release (

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

)</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
2 changes: 1 addition & 1 deletion KSP-BAM-master/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
// [assembly: AssemblyVersion("1.0.*")]

//[assembly: AssemblyVersion("1.1.0.12")]
[assembly: AssemblyFileVersion("1.1.0.0")]
//[assembly: AssemblyFileVersion("1.1.0.0")]
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
12 changes: 10 additions & 2 deletions deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@ rem GAMEDATA is the name of the local GameData
rem VERSIONFILE is the name of the version file, usually the same as GAMEDATA,
rem but not always


set H=%KSPDIR%
set GAMEDIR=BAM
set GAMEDATA=GameData
set VERSIONFILE=BAM.version
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%"

pause

0 comments on commit 7922164

Please sign in to comment.