From 79624215e9a378ac652708f5f03eedb13e330232 Mon Sep 17 00:00:00 2001 From: NotoriousPyro Date: Mon, 19 Dec 2022 22:43:32 +0000 Subject: [PATCH] General tidying for release --- .editorconfig | 4 ++++ NuclearPlus.cs | 2 +- NuclearPlus.csproj | 6 ++++++ README.md | 10 +++------- build.ps1 | 13 +------------ 5 files changed, 15 insertions(+), 20 deletions(-) diff --git a/.editorconfig b/.editorconfig index fcc3086..9eb8835 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,9 @@ root=true +[*] +end_of_line = lf +insert_final_newline = true + [*.cs] indent_style = space indent_size = 4 diff --git a/NuclearPlus.cs b/NuclearPlus.cs index b624345..c95250d 100644 --- a/NuclearPlus.cs +++ b/NuclearPlus.cs @@ -38,4 +38,4 @@ public override void RegisterPrototypes(ProtoRegistrator registrator) registrator.RegisterData(); registrator.RegisterDataWithInterface(); } -} \ No newline at end of file +} diff --git a/NuclearPlus.csproj b/NuclearPlus.csproj index 1f29ca7..c5262fd 100644 --- a/NuclearPlus.csproj +++ b/NuclearPlus.csproj @@ -1,5 +1,11 @@ + + + $(MSBuildProjectDirectory)\release diff --git a/README.md b/README.md index 2165911..1da51b0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# NuclearPlus - +# WasteManagement +## Version 1.0.4 (compatible CoI version: 0.4.12 - 0.4.13) Provides advanced nuclear research to the game. > :warning: **Currently ***alpha***. Buildings and recipes may change...** @@ -14,8 +14,6 @@ More may come... please create an issue for any suggestions or bugs. # How to install -> :warning: **You will need to start a new game to play this mod. This is a restriction of CoI.** - Download the latest release: https://github.com/NotoriousPyro/NuclearPlus/releases 1. From the downloaded zip, copy the contents of the `Mods` folder to your Captain of Industry `Mods` folder. @@ -27,9 +25,7 @@ Download the latest release: https://github.com/NotoriousPyro/NuclearPlus/releas 2. Verify inside 'Mods' folder, each sub-folder has **a dll file with the same name as the folder**, it is fine if other DLLs are also present. -3. Enable the `Enable mods` options in the ingame settings. - -4. Start a new game! +3. Enable the `Enable mods` options in the ingame settings or select the mod in load game menu. # How to use diff --git a/build.ps1 b/build.ps1 index 6044143..0d6a37c 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,11 +1,3 @@ -Param ( - [switch] $release -) -$configuration = 'debug' -if ($release -eq $true) { - $configuration = 'release' -} - $prefix = ((new-object -COM Shell.Application).Namespace(0x05).Self.Path) $modsFolder = Join-Path $prefix 'Captain of Industry\Mods' $modName = Split-Path $pwd -Leaf @@ -14,10 +6,7 @@ $targetFramework = $csproj.GetElementsByTagName("TargetFramework")[0].'#text' $source = Join-Path $pwd "bin\Debug\${targetFramework}" $destination = Join-Path $modsFolder $modName -dotnet build -c $configuration +ROBOCOPY $source $destination *.dll *.pdb /S /IM if ($? -eq $false) { exit } -if ($configuration -eq 'debug') { - ROBOCOPY $source $destination *.dll *.pdb /S /IM -}