Skip to content

Commit bd966e3

Browse files
committed
update build system to support CHANGELOG.md + bump version
1 parent 6f332db commit bd966e3

File tree

6 files changed

+59
-47
lines changed

6 files changed

+59
-47
lines changed

CHANGELOG.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
### [0.5.0]
2+
3+
Highlights:
4+
5+
**Massive UI Overhaul**
6+
- Cleaned up the base game controls to be more organized.
7+
- Added Controller Glyphs for Xbox and DualSense controllers with automatic detection.
8+
- *Glyphs only show up in the rebind menu for now, a future update will have them be visible in game.*
9+
- *Api to request controller glyphs for a control path will be available in a future update.*
10+
- Controls added by mods are seperated by mod.
11+
- Controls manually injected into the vanilla ui by mods are available in "Legacy Controls".
12+
13+
*Controller navigation of the new UI is still a ***WIP***, hoping to improve it in a future update.*
14+
15+
### [0.4.4]
16+
17+
Text in the remap ui now has auto-scaling size.
18+
Remap ui no longer cuts-off the bottom of the controller section.
19+
Changed method for determining the BepInPlugin of dependents.
20+
21+
### [0.4.3]
22+
23+
`LcInputActions.Asset` now has a public getter.
24+
Fixed issue where binds that were unbound by default would not save/load their new binds after restarting your game.
25+
26+
### [0.4.2]
27+
28+
Hotfix for applying migrations when the new file already existed, no longer crashes the mod.
29+
30+
### [0.4.1]
31+
32+
Bind overrides have been moved from `BepInEx/controls` to `BepInEx/config/controls` allowing for bind overrides to be distributed with modpacks.
33+
34+
### [0.4.0]
35+
36+
InputActions can now be made at runtime by overriding the method `CreateInputActions(...)` and using the provided builder.
37+
38+
### [0.3.0]
39+
40+
The only required parameter for the InputActions attribute is now only just the kbmPath, the rest are now optional.
41+
Should help improve DX.
42+
43+
### [0.2.0]
44+
45+
Interactions for the kbm and gamepad bindings can now be set in the attribute.
46+
47+
### [0.1.0]
48+
49+
Initial Beta Release.

LethalCompanyInputUtils.sln

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1010
.env = .env
1111
manifest.json = manifest.json
1212
READEME.md = README.md
13+
CHANGELOG.md = CHANGELOG.md
1314
EndProjectSection
1415
EndProject
1516
Global

LethalCompanyInputUtils/LethalCompanyInputUtilsPlugin.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class LethalCompanyInputUtilsPlugin : BaseUnityPlugin
1414
{
1515
public const string ModId = "com.rune580.LethalCompanyInputUtils";
1616
public const string ModName = "Lethal Company Input Utils";
17-
public const string ModVersion = "0.4.4";
17+
public const string ModVersion = "0.5.0";
1818

1919
private Harmony? _harmony;
2020

README.md

-44
Original file line numberDiff line numberDiff line change
@@ -322,47 +322,3 @@ Github: Rune580
322322
Thanks to the following contributers:
323323
- @Boxofbiscuits97 for reworking most of the documentation.
324324
- @Lordfirespeed for housekeeping and additional documentation cleanup.
325-
326-
## Changelog
327-
All notable changes to this project will be documented here.
328-
329-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
330-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
331-
332-
### [Unreleased]
333-
334-
### [0.4.4]
335-
336-
Text in the remap ui now has auto-scaling size.
337-
Remap ui no longer cuts-off the bottom of the controller section.
338-
Changed method for determining the BepInPlugin of dependents.
339-
340-
### [0.4.3]
341-
342-
`LcInputActions.Asset` now has a public getter.
343-
Fixed issue where binds that were unbound by default would not save/load their new binds after restarting your game.
344-
345-
### [0.4.2]
346-
347-
Hotfix for applying migrations when the new file already existed, no longer crashes the mod.
348-
349-
### [0.4.1]
350-
351-
Bind overrides have been moved from `BepInEx/controls` to `BepInEx/config/controls` allowing for bind overrides to be distributed with modpacks.
352-
353-
### [0.4.0]
354-
355-
InputActions can now be made at runtime by overriding the method `CreateInputActions(...)` and using the provided builder.
356-
357-
### [0.3.0]
358-
359-
The only required parameter for the InputActions attribute is now only just the kbmPath, the rest are now optional.
360-
Should help improve DX.
361-
362-
### [0.2.0]
363-
364-
Interactions for the kbm and gamepad bindings can now be set in the attribute.
365-
366-
### [0.1.0]
367-
368-
Initial Beta Release.

build/Build.cs

+6
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ public override void Run(BuildContext context)
295295
AbsolutePath manifestFile = "manifest.json";
296296
AbsolutePath iconFile = "icon.png";
297297
AbsolutePath readmeFile = "README.md";
298+
AbsolutePath changelogFile = "CHANGELOG.md";
298299

299300
var project = context.Project;
300301

@@ -314,6 +315,7 @@ public override void Run(BuildContext context)
314315
File.Copy("../" / manifestFile, publishDir / manifestFile, true);
315316
File.Copy("../" / iconFile, publishDir / iconFile, true);
316317
File.Copy("../" / readmeFile, publishDir / readmeFile, true);
318+
File.Copy("../" / changelogFile, publishDir / changelogFile, true);
317319

318320
var manifest = JsonSerializer.Deserialize<ThunderStoreManifest>(File.ReadAllText(publishDir / manifestFile));
319321

@@ -342,6 +344,9 @@ public override void Run(BuildContext context)
342344
AbsolutePath readmeFile = (AbsolutePath)"../" / "README.md";
343345
File.Copy(readmeFile, context.BuildDir / "README.md", true);
344346

347+
AbsolutePath changelogFile = (AbsolutePath)"../" / "CHANGELOG.md";
348+
File.Copy(changelogFile, context.BuildDir / "CHANGELOG.md", true);
349+
345350
AbsolutePath iconFile = (AbsolutePath)"../" / "icon.png";
346351
File.Copy(iconFile, context.BuildDir / "icon.png", true);
347352

@@ -366,6 +371,7 @@ public override void Run(BuildContext context)
366371
<files>
367372
<file src="{dllFile}" target="lib/{dllFile}" />
368373
<file src="README.md" />
374+
<file src="CHANGELOG.md" />
369375
<file src="icon.png" />
370376
<file src="LICENSE" />
371377
</files>

manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "LethalCompany_InputUtils",
3-
"version_number": "0.4.4",
3+
"version_number": "0.5.0",
44
"website_url": "https://github.com/Rune580/LethalCompanyInputUtils",
5-
"description": "Utilities for creating InputActions and having them be accessible in game",
5+
"description": "Utilities for creating InputActions and providing an (opinionated) improved UI.",
66
"dependencies": [
77
"BepInEx-BepInExPack-5.4.2100"
88
]

0 commit comments

Comments
 (0)