Skip to content

Commit

Permalink
add .versiontemplate files
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyOThan committed Aug 4, 2024
1 parent 324ac14 commit 1ea5b1f
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Resources/GameData/kOS/kOS.version.versiontemplate
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"NAME": "kOS",
"URL": "https://raw.githubusercontent.com/KSP-KOS/KOS/master/Resources/GameData/kOS/kOS.version",
"DOWNLOAD": "https://github.com/KSP-KOS/KOS/releases",
"CHANGE_LOG_URL": "https://raw.githubusercontent.com/KSP-KOS/KOS/master/CHANGELOG.md",
"GITHUB": {
"USERNAME": "KSP-KOS",
"REPOSITORY": "KOS",
"ALLOW_PRE_RELEASE": false
},
"VERSION": {
"MAJOR": @VERSION_MAJOR@,
"MINOR": @VERSION_MINOR@,
"PATCH": @VERSION_PATCH@,
"BUILD": @VERSION_BUILD@
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 12,
"PATCH": 5
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 12,
"PATCH": 3
},
"KSP_VERSION_MAX": {
"MAJOR": 1,
"MINOR": 12,
"PATCH": 99
}
}
26 changes: 26 additions & 0 deletions src/kOS.Safe.Test/Properties/AssemblyInfo.cs.versiontemplate
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("kOS.Safe.Test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("kOS.Safe.Test")]
[assembly: AssemblyCopyright("Copyright 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("651e637f-78f4-4f85-a22b-33fe26e5aeca")]

[assembly: AssemblyFileVersion("@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@.@VERSION_BUILD@")]
[assembly: AssemblyVersion("@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@.@VERSION_BUILD@")]
1 change: 1 addition & 0 deletions src/kOS.Safe.Test/kOS.Safe.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Properties\AssemblyInfo.cs.versiontemplate" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)..\KSPBuildTools\KSPCommon.props" />
Expand Down
26 changes: 26 additions & 0 deletions src/kOS.Safe/Properties/AssemblyInfo.cs.versiontemplate
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("kOS.Safe")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("kOS.Safe")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("c1a3b326-28f5-4b98-bf0f-8bd25363fbd7")]

[assembly: AssemblyFileVersion("@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@.@VERSION_BUILD@")]
[assembly: AssemblyVersion("@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@.@VERSION_BUILD@")]
[assembly: KSPAssembly("kOS.Safe", @VERSION_MAJOR@, @VERSION_MINOR@)]
1 change: 1 addition & 0 deletions src/kOS.Safe/kOS.Safe.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
<None Include="Compilation\CompiledObject-doc.md" />
<None Include="Compilation\KS\kRISC.tpg" />
<None Include="packages.config" />
<None Include="Properties\AssemblyInfo.cs.versiontemplate" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
Expand Down
23 changes: 23 additions & 0 deletions src/kOS/Properties/AssemblyInfo.cs.versiontemplate
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("kOS")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("kOS")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("324da3fe-391b-421d-93b7-29499dcf9ef3")]

[assembly: AssemblyFileVersion("@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@.@VERSION_BUILD@")]
[assembly: AssemblyVersion("@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@.@VERSION_BUILD@")]
[assembly: KSPAssembly("kOS", @VERSION_MAJOR@, @VERSION_MINOR@)]
1 change: 1 addition & 0 deletions src/kOS/kOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -263,5 +263,6 @@
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Properties\AssemblyInfo.cs.versiontemplate" />
</ItemGroup>
</Project>

0 comments on commit 1ea5b1f

Please sign in to comment.