Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Commit

Permalink
General tidying for release
Browse files Browse the repository at this point in the history
  • Loading branch information
NotoriousPyro committed Dec 19, 2022
1 parent 473e532 commit 7962421
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
root=true

[*]
end_of_line = lf
insert_final_newline = true

[*.cs]
indent_style = space
indent_size = 4
2 changes: 1 addition & 1 deletion NuclearPlus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public override void RegisterPrototypes(ProtoRegistrator registrator)
registrator.RegisterData<Recipes.DistillationTowerData>();
registrator.RegisterDataWithInterface<IResearchNodesData>();
}
}
}
6 changes: 6 additions & 0 deletions NuclearPlus.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="PreBuild.target" />
<Target Name="PostBuild" AfterTargets="Build" Condition=" '$(Configuration)' == 'Debug' ">
<Exec
Command="powershell -NonInteractive -ExecutionPolicy Unrestricted -File .\build.ps1"
WorkingDirectory="$(MSBuildProjectDirectory)"
/>
</Target>
<Target Name="ZipOutputPath" AfterTargets="Build" Condition=" '$(Configuration)' == 'Release' ">
<PropertyGroup>
<DistDir>$(MSBuildProjectDirectory)\release</DistDir>
Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -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...**
Expand All @@ -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.
Expand All @@ -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
Expand Down
13 changes: 1 addition & 12 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
}

0 comments on commit 7962421

Please sign in to comment.