Skip to content

Commit

Permalink
[Add] readme and icon to nuget packages
Browse files Browse the repository at this point in the history
[Add] release.bat batch file
  • Loading branch information
samatrhea committed Apr 14, 2024
1 parent a5fa8d2 commit ee2d80a
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 2 deletions.
12 changes: 11 additions & 1 deletion DEH-REQIF-APP/DEH-REQIF.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>DEHReqIF.Console</RootNamespace>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<Description>A Commandline application used to convert an E-TM-10-25 data source into a ReqIF document.</Description>
<Company>RHEA System S.A.</Company>
<Copyright>Copyright 2022-2024 RHEA System S.A.</Copyright>
Expand All @@ -13,6 +13,11 @@
<RepositoryType>Git</RepositoryType>
<Authors>Sam Gerené</Authors>
<LangVersion>latest</LangVersion>
<PackageReleaseNotes>
[Update] to net8
</PackageReleaseNotes>
<PackageIcon>cdp4-comet-logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -44,4 +49,9 @@
</None>
</ItemGroup>

<ItemGroup>
<None Include="..\cdp4-comet-logo.png" Pack="true" PackagePath="\" />
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
10 changes: 9 additions & 1 deletion DEH-REQIF/DEH-REQIF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>DEHReqIF</RootNamespace>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<Description>A .NET library to conver ECSS-E-TM-10-25 requirements to an OMG ReqIF file.</Description>
<PackageId>DEH-ReqIF</PackageId>
<Company>RHEA System S.A.</Company>
Expand All @@ -16,10 +16,13 @@
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
<IncludeSource>true</IncludeSource>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageReleaseNotes>
[Initial Version]
</PackageReleaseNotes>
<LangVersion>latest</LangVersion>
<PackageIcon>cdp4-comet-logo.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -36,4 +39,9 @@
<PackageReference Include="System.Text.Json" Version="8.0.3" />
</ItemGroup>

<ItemGroup>
<None Include="..\cdp4-comet-logo.png" Pack="true" PackagePath="\" />
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
Binary file added cdp4-comet-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@echo off

IF %1.==. GOTO KeyError
set apikey=%1

GOTO Begin

:KeyError
ECHO.
ECHO ERROR: No apikey was specified
ECHO.

GOTO End

:Begin

ECHO.
ECHO Cleaning up...
ECHO.

IF EXIST "%~dp0\ReleaseBuilds" (
rmdir "%~dp0\ReleaseBuilds" /s /q
)

mkdir "%~dp0\ReleaseBuilds"

rem Cleaning Builds...
dotnet clean -c Release DEH-REQIF.sln

ECHO.
ECHO Packing nugets...
ECHO.

rem Packing New Versions...
dotnet pack -c Release -o ReleaseBuilds DEH-REQIF.sln

ECHO.
ECHO Pushing to nuget.org ...
ECHO.

dotnet nuget push ReleaseBuilds\*.nupkg -s api.nuget.org -k %apikey% --skip-duplicate

:End

ECHO.
ECHO Release Completed
ECHO.

0 comments on commit ee2d80a

Please sign in to comment.