Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devops Part 1 #25

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*.cs]
indent_style = tab
indent_size = 4

[*.cfg]
indent_style = tab
indent_size = 4

[*.{csproj*,sln,props}]
indent_style = space
indent_size = 2
141 changes: 0 additions & 141 deletions Makefile

This file was deleted.

24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,17 +681,19 @@ scenarios. Feel free to try to change my mind!
# Building

If you want to build the DLL and packages, just be aware that the provided source assume
use of Unix make and mono.

I personally work on Ubuntu 20.04 (running on WSL2 in Windows 10). You will need to
install mono-complete and know how to use make and Unix. If not, it's likely you could
generate a Visual Studio project and fill in some sensible details.

The Makefile "build" target will build the DLL.

The "install" target will copy the DLL and GameData to the KSP directory specified in the
Makefile, you should modify that (the default Steam install on WSL2 on Windows is
commented out).
use of Visual Studio 22 Community Edition on Windows.

* Copy `plugin/Reviva.csproj.user-example` to `plugin/Reviva.csproj.user`
* Edit `ReferencePath` to point to your KSP game root.
* This is where the Assemblies are taken for building.
* Open `Reviva.sln` in VS 22.
* Select `Debug` or `Release` configuration.
* Check `tools\postbuild.bat`
* The default on a succesful build is to:
* Copy the DLL to the repository `GameData` - so that the repo is exactly what should be packaged for release.
* Remove and re-copy the repository GameData to `$(ReferencePath)\GameData\Reviva` - so the
developer can restart KSP and test.
* Hit `Build` or `F6` to build.

Happy to recieve pull requests on GitHub for improvements, more IVA support, etc.

Expand Down
8 changes: 4 additions & 4 deletions plugin/AssemblyInfo.cs.in → plugin/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
[assembly: ComVisible(false)]
[assembly: Guid("e33468f4-ccae-4af4-ab17-0f48195d85c7")]

[assembly: AssemblyInformationalVersionAttribute("%%VER_GIT%%")]
[assembly: AssemblyVersion("%%VER_MAJOR%%.%%VER_MINOR%%.%%VER_PATCH%%.%%VER_BUILD%%")]
[assembly: AssemblyFileVersion("%%VER_MAJOR%%.%%VER_MINOR%%.%%VER_PATCH%%.%%VER_BUILD%%")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-1-g6994e37")]
[assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.0.0.1")]

[assembly: KSPAssembly("Reviva", %%VER_MAJOR%%, %%VER_MINOR%%, %%VER_PATCH%%)]
[assembly: KSPAssembly("Reviva", 1, 0, 0)]
Loading