Skip to content

Commit 7006169

Browse files
committed
Update build dependencies and add in KSPCommunityLib
1 parent 81ff67c commit 7006169

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,28 @@ jobs:
2020
submodules: true
2121
fetch-depth: 0 # get full history, not shallow clone
2222

23+
- name: Setup .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: 8.0.x
27+
2328
- name: Get Changelog Information
24-
uses: drewcassidy/yaclog@1.5.0
29+
uses: drewcassidy/yaclog@1.6.2
2530
id: yaclog-show
2631

27-
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/[email protected].4
32+
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/setup-ckan@1.0.0-alpha.3
2833

29-
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/[email protected].4
34+
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/compile@1.0.0-alpha.3
3035
with:
3136
ksp-zip-url: https://github.com/KSPModdingLibs/KSPLibs/raw/main/KSP-1.12.5.zip
3237

3338
- name: Generate KSP Changelog
34-
uses: drewcassidy/yaclog-ksp@1.2.0
39+
uses: drewcassidy/yaclog-ksp@1.3.0
3540
with:
3641
mod-name: Shabby
3742
output-path: GameData/Shabby/shabby-version.cfg
3843

39-
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/[email protected].4
44+
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/assemble-release@1.0.0-alpha.3
4045
id: assemble-release
4146
with:
4247
output-file-name: 'Shabby'

Source/ShabBundleLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
1818

1919
using System.Collections;
2020
using System.IO;
21-
using KSPBuildTools;
21+
using KSPCommunityLib.Logging;
2222
using UnityEngine;
2323

2424
namespace Shabby;

Source/Shabby.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License
2121
using System.Linq;
2222
using System.Reflection;
2323
using HarmonyLib;
24-
using KSPBuildTools;
24+
using KSPCommunityLib.Logging;
2525
using UnityEngine;
2626

2727
namespace Shabby;

Source/Shabby.csproj

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
<!-- MSBuild Dependencies -->
55
<ItemGroup>
6-
<PackageReference Include="KSPBuildTools" Version="0.0.4" />
6+
<PackageReference Include="KSPBuildTools" Version="1.0.0-*" />
7+
<PackageReference Include="KSPCommunityLib" Version="0.1.1" />
78
<PackageReference Include="MinVer" Version="5.0.0">
89
<PrivateAssets>all</PrivateAssets>
910
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
@@ -21,26 +22,24 @@
2122
<IsPackable>false</IsPackable>
2223
<PlatformTarget>x64</PlatformTarget>
2324
<NoWarn>1701;1702;CS0649;CS1591;</NoWarn>
24-
<AssemblyCopyright>2024 KSPModdingLibs Contributors</AssemblyCopyright>
25+
<AssemblyCopyright>2025 KSPModdingLibs Contributors</AssemblyCopyright>
2526
<AssemblyName>Shabby</AssemblyName>
26-
<RepoRootPath>$(ProjectDir)../</RepoRootPath>
27-
<GenerateKSPAssemblyAttribute>true</GenerateKSPAssemblyAttribute>
28-
<GenerateKSPAssemblyDependencyAttributes>true</GenerateKSPAssemblyDependencyAttributes>
27+
<KSPBT_ModRoot>$(MSBuildThisFileDirectory)/../GameData/Shabby</KSPBT_ModRoot>
2928
</PropertyGroup>
3029

3130
<!-- DLL Dependencies-->
3231
<ItemGroup>
33-
<Reference Include="0Harmony, Culture=neutral, PublicKeyToken=null">
34-
<HintPath>$(KSPRoot)/GameData/000_Harmony/0Harmony.dll</HintPath>
32+
<ModReference Include="0Harmony">
33+
<DLLPath>GameData/000_Harmony/0Harmony.dll</DLLPath>
3534
<CKANIdentifier>Harmony2</CKANIdentifier>
3635
<Private>False</Private>
37-
</Reference>
36+
</ModReference>
3837
</ItemGroup>
3938

4039
<!-- Version Files -->
4140
<ItemGroup>
4241
<KSPVersionFile Include=".">
43-
<Destination>$(RepoRootPath)GameData/Shabby/Shabby.version</Destination>
42+
<Destination>$(KSPBT_ModRoot)/Shabby.version</Destination>
4443
<URL>https://github.com/KSPModdingLibs/Shabby/releases/latest/download/Shabby.version</URL>
4544
<Download>https://github.com/KSPModdingLibs/Shabby/releases/latest</Download>
4645
</KSPVersionFile>

0 commit comments

Comments
 (0)