Adjustments according to Chocolatey review

This commit is contained in:
Christian Köllner 2019-07-28 18:14:11 +02:00
parent 685a470523
commit 651829db35
10 changed files with 33 additions and 17 deletions

View File

@ -1,6 +1,8 @@
https://github.com/c80k/capnproto-dotnetcore/blob/master/LICENSE
MIT License MIT License
Copyright (c) 2019 c80k Copyright (c) 2019 c80k and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -2,5 +2,6 @@ VERIFICATION
Verification is intended to assist the Chocolatey moderators and community Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy. in verifying that this package's contents are trustworthy.
This package is published by the capnproto-dotnetcore project itself. Any binaries will be This package is published by the capnproto-dotnetcore project itself.
identical to other package types published by the project. To reproduce this package, obtain the sources from GitHub and execute scripts\capnpc-csharp-pack.ps1
The script will generate the exact NuGet package(s) which are to be pushed to Chocolatey.

View File

@ -5,16 +5,20 @@
<version>1.0.0</version> <version>1.0.0</version>
<packageSourceUrl>https://chocolatey.org/packages/capnpc-csharp-win-x86/1.0.0</packageSourceUrl> <packageSourceUrl>https://chocolatey.org/packages/capnpc-csharp-win-x86/1.0.0</packageSourceUrl>
<authors>Christian Köllner and contributors</authors> <authors>Christian Köllner and contributors</authors>
<owners>Christian Köllner and contributors</owners> <owners>Christian Köllner</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance> <requireLicenseAcceptance>false</requireLicenseAcceptance>
<!--<license type="expression">MIT</license>--> <!--<license type="expression">MIT</license>-->
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl> <licenseUrl>https://github.com/c80k/capnproto-dotnetcore/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/c80k/capnproto-dotnetcore</projectUrl> <projectUrl>https://github.com/c80k/capnproto-dotnetcore</projectUrl>
<title>capnpc-csharp (Install)</title> <title>capnpc-csharp (Install)</title>
<description>Cap'n Proto C# code generator backend, self-contained Windows x86</description> <description>Cap'n Proto C# code generator backend, self-contained Windows x86</description>
<copyright>Christian Köllner and contributors</copyright> <copyright>Christian Köllner and contributors</copyright>
<projectSourceUrl>https://github.com/c80k/capnproto-dotnetcore</projectSourceUrl>
<docsUrl>https://github.com/c80k/capnproto-dotnetcore/wiki</docsUrl>
<bugTrackerUrl>https://github.com/c80k/capnproto-dotnetcore/issues</bugTrackerUrl>
<tags>capnp capnpc RPC serialization cerealization</tags> <tags>capnp capnpc RPC serialization cerealization</tags>
<summary>Cap'n Proto C# code generator backend, self-contained Windows x86</summary> <summary>Cap'n Proto C# code generator backend. This is the self-contained variant. It requires Windows x86/x64
(as opposed to the capnpc-csharp package, which is CPU-independent but requires a .NET Core runtime)</summary>
<!--<repository type="Git" />--> <!--<repository type="Git" />-->
<dependencies> <dependencies>
<dependency id="capnproto" version="0.7.0" /> <dependency id="capnproto" version="0.7.0" />
@ -25,6 +29,6 @@
<file src="chocolateyuninstall.ps1" target="tools" /> <file src="chocolateyuninstall.ps1" target="tools" />
<file src="..\..\LICENSE" target="tools\LICENSE" /> <file src="..\..\LICENSE" target="tools\LICENSE" />
<file src="..\VERIFICATION" target="tools\VERIFICATION" /> <file src="..\VERIFICATION" target="tools\VERIFICATION" />
<file src=".\bin\**" target="tools" /> <file src=".\bin\**" target="bin" />
</files> </files>
</package> </package>

View File

@ -1,5 +1,5 @@
$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $binDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)\..\bin"
Install-Binfile -Name capnpc-csharp -Path "$toolsDir\capnpc-csharp.exe" Install-Binfile -Name capnpc-csharp -Path "$binDir\capnpc-csharp.exe"

View File

@ -5,26 +5,31 @@
<version>1.0.0</version> <version>1.0.0</version>
<packageSourceUrl>https://chocolatey.org/packages/capnpc-csharp/1.0.0</packageSourceUrl> <packageSourceUrl>https://chocolatey.org/packages/capnpc-csharp/1.0.0</packageSourceUrl>
<authors>Christian Köllner and contributors</authors> <authors>Christian Köllner and contributors</authors>
<owners>Christian Köllner and contributors</owners> <owners>Christian Köllner</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance> <requireLicenseAcceptance>false</requireLicenseAcceptance>
<!--<license type="expression">MIT</license>--> <!--<license type="expression">MIT</license>-->
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl> <licenseUrl>https://github.com/c80k/capnproto-dotnetcore/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/c80k/capnproto-dotnetcore</projectUrl> <projectUrl>https://github.com/c80k/capnproto-dotnetcore</projectUrl>
<title>capnpc-csharp (Install)</title> <title>capnpc-csharp (Install)</title>
<description>Cap'n Proto C# code generator backend, portable .NET Core 2.1</description> <description>Cap'n Proto C# code generator backend, portable .NET Core 2.1</description>
<summary>Cap'n Proto C# code generator backend, portable .NET Core 2.1</summary> <summary>Cap'n Proto C# code generator backend. This is the portable variant which depends on .NET Core 2.1 (as opposed to capnpc-csharp-win-x86)</summary>
<copyright>Christian Köllner and contributors</copyright> <copyright>Christian Köllner and contributors</copyright>
<projectSourceUrl>https://github.com/c80k/capnproto-dotnetcore</projectSourceUrl>
<docsUrl>https://github.com/c80k/capnproto-dotnetcore/wiki</docsUrl>
<bugTrackerUrl>https://github.com/c80k/capnproto-dotnetcore/issues</bugTrackerUrl>
<tags>capnp capnpc RPC serialization cerealization</tags> <tags>capnp capnpc RPC serialization cerealization</tags>
<!--<repository type="Git" />--> <!--<repository type="Git" />-->
<dependencies> <dependencies>
<dependency id="capnproto" version="0.7.0" /> <dependency id="capnproto" version="0.7.0" />
<dependency id="dotnetcore-runtime.install" version="2.1.6" />
</dependencies> </dependencies>
</metadata> </metadata>
<files> <files>
<file src="chocolateyinstall.ps1" target="tools" /> <file src="chocolateyinstall.ps1" target="tools" />
<file src="chocolateyuninstall.ps1" target="tools" /> <file src="chocolateyuninstall.ps1" target="tools" />
<file src=".\capnpc-csharp.ps1" target="tools" />
<file src="..\..\LICENSE" target="tools\LICENSE" /> <file src="..\..\LICENSE" target="tools\LICENSE" />
<file src="..\VERIFICATION" target="tools\VERIFICATION" /> <file src="..\VERIFICATION" target="tools\VERIFICATION" />
<file src=".\bin\**" target="tools" /> <file src=".\bin\**" target="bin" />
</files> </files>
</package> </package>

View File

@ -0,0 +1,2 @@
$myDir = Split-Path -Parent $MyInvocation.MyCommand.Path
dotnet "$myDir\..\bin\capnpc-csharp.dll"

View File

@ -2,4 +2,4 @@ $ErrorActionPreference = 'Stop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
Install-Binfile -Name capnpc-csharp -Path "dotnet" -Command "$toolsDir\capnpc-csharp.dll" Install-ChocolateyPowershellCommand -PackageName 'capnpc-csharp' -PsFileFullPath "$toolsDir\capnpc-csharp.ps1"

View File

@ -1,3 +1 @@
$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'
Uninstall-BinFile capnpc-sharp

View File

@ -6,3 +6,5 @@ $installDir = "$scriptDir\..\chocolatey\install"
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
choco install $id -s $installDir --force choco install $id -s $installDir --force
Pause

View File

@ -5,4 +5,6 @@ $installDir = "$scriptDir\..\chocolatey\install"
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
choco install $id -s $installDir --force choco install $id --source="'$installDir;https://chocolatey.org/api/v2'" --force
Pause