Skip to content

Commit

Permalink
update readme to correct build procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Sep 22, 2023
1 parent c931f0d commit 5c6c8af
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# HICPlugin

## Building
Before Building, ensure the version numbe ris correct within the hicplugin.nuspec and sharedAssembly.info file
You will also need 7zip or an equivalent installed.

You can build this plugin ready for upload to an RDMP instance using:

```bash
cd Plugin/windows
dotnet publish --runtime win-x64 -c Release --self-contained false
cd ../main
dotnet publish -c Release --self-contained false
cd ../..
nuget pack ./HIC.Plugin.nuspec -Properties Configuration=Release -IncludeReferencedProjects -Symbols -Version 6.1.0
dotnet publish -p:DebugType=embedded -p:GenerateDocumentation=false Plugin/windows/windows.csproj -c Release -o p/windows
dotnet publish -p:DebugType=embedded -p:GenerateDocumentation=false Plugin/main/main.csproj -c Release -o p/main
7z a -tzip Rdmp.Hic.Plugin.6.1.0.nupkg hicplugin.nuspec p
dotnet run --project RDMP/Tools/rdmp/rdmp.csproj -c Release -- pack -p --file Rdmp.Hic.Plugin.6.1.0.nupkg --dir yaml
```
_Use the version number in SharedAssembly.info in pace of 6.1.0_

Once built you will have a file called `Rdmp.Hic.Plugin.6.1.0.nupkg`

Expand Down
6 changes: 3 additions & 3 deletions SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
[assembly: AssemblyCulture("")]

// These should be overwritten by release builds
[assembly: AssemblyVersion("6.2.0")]
[assembly: AssemblyFileVersion("6.2.0")]
[assembly: AssemblyInformationalVersion("6.2.0-rc1")]
[assembly: AssemblyVersion("6.1.0")]
[assembly: AssemblyFileVersion("6.1.0")]
[assembly: AssemblyInformationalVersion("6.1.0")]
12 changes: 12 additions & 0 deletions hicplugin.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>Rdmp.HICPlugin</id>
<version>6.1.0</version>
<authors>Health Informatics Service, University of Dundee</authors>
<description>Imaging plugin for Research Data Management Platform </description>
<dependencies>
<dependency id="HIC.RDMP.Plugin" version="8.1.0" />
</dependencies>
</metadata>
</package>

0 comments on commit 5c6c8af

Please sign in to comment.