Skip to content

Commit f6f0584

Browse files
committed
enable .version file generation with kspbt
1 parent 183d3d5 commit f6f0584

File tree

2 files changed

+10
-29
lines changed

2 files changed

+10
-29
lines changed

GameData/SCANsat/SCANsat.version

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
11
{
2-
"NAME":"SCANsat",
3-
"URL":"https://raw.githubusercontent.com/S-C-A-N/SCANsat/release/SCANassets/SCANsat.version",
4-
"DOWNLOAD":"https://github.com/S-C-A-N/SCANsat/releases",
5-
"GITHUB":{
6-
"USERNAME":"S-C-A-N",
7-
"REPOSITORY":"SCANsat",
8-
"ALLOW_PRE_RELEASE":false
9-
},
10-
"VERSION":{
11-
"MAJOR":1,
12-
"MINOR":20,
13-
"PATCH":4,
14-
"BUILD":0
15-
},
16-
"KSP_VERSION":{
17-
"MAJOR":1,
18-
"MINOR":10,
19-
"PATCH":1
20-
},
21-
"KSP_VERSION_MIN":{
22-
"MAJOR":1,
23-
"MINOR":8,
24-
"PATCH":1
25-
},
26-
"KSP_VERSION_MAX":{
27-
"MAJOR":1,
28-
"MINOR":10,
29-
"PATCH":8
30-
}
2+
"NAME": "SCANsat",
3+
"URL": "https://github.com/KSPModStewards/SCANsat/releases/latest/download/SCANsat.version",
4+
"DOWNLOAD": "https://github.com/KSPModStewards/SCANsat/releases"
5+
316
}

SCANsat/SCANsat.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
1010
<GenerateKSPAssemblyDependencyAttributes>true</GenerateKSPAssemblyDependencyAttributes>
1111
</PropertyGroup>
12+
<ItemGroup>
13+
<KSPVersionFile Include="$(RepoRootPath)\GameData\SCANsat\SCANsat.version">
14+
<Destination>$(RepoRootPath)\GameData\SCANsat\SCANsat.version</Destination>
15+
<KSP_Version_Min>1.12.3</KSP_Version_Min>
16+
</KSPVersionFile>
17+
</ItemGroup>
1218
<ItemGroup>
1319
<PackageReference Include="KSPBuildTools" Version="0.0.4" />
1420
</ItemGroup>

0 commit comments

Comments
 (0)