Chocolatey verification file fixes (#22)

* Chocolatey verification file fixes

* Nuspec Fixes
This commit is contained in:
Dan Probert 2021-09-27 22:41:37 +01:00 коммит произвёл GitHub
Родитель e3887abfcf
Коммит 9b62eba904
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 30 добавлений и 7 удалений

13
.github/workflows/ci-build.yml поставляемый
Просмотреть файл

@ -61,15 +61,16 @@ jobs:
- name: Create the Chocolatey verification file and copy the license file - name: Create the Chocolatey verification file and copy the license file
shell: bash shell: bash
run: | run: |
mkdir -p ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }} mkdir -p ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}
cp ./LICENSE ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/LICENSE.txt cp ./LICENSE ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/LICENSE.txt
verificationFile=./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/VERIFICATION.txt cp ./VERIFICATION ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/VERIFICATION.txt
touch $verificationFile echo "Checksums for the files in the package are:" >> ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/VERIFICATION.txt
find ./templates -type f | find ${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }} -type f |
while read f while read f
do do
filename="$basename -- $f" filename="$(basename $f) [$f]"
echo $filename >> $verificationFile filehash=$(sha256sum $f | awk '{print $1}')
echo "$filename -- $filehash" >> ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_SRC_DIR }}/VERIFICATION.txt
done done
- name: Create the Chocolatey package output directory - name: Create the Chocolatey package output directory

21
VERIFICATION Normal file
Просмотреть файл

@ -0,0 +1,21 @@
VERIFICATION
Verification is intended to assist Chocolatey moderators and the Chocolatey community
in verifying that this package's contents are trustworthy.
This package contains liquid template files, json files, powershell scripts, and a couple of zip files (containing Azure Functions).
This file lists their SHA256 checksums.
There is no other source for installation of these files, other than Chocolatey:
The files are built and packaged and uploaded to Chocolatey; other than referenced files (e.g. .NET Core), they do not currently reside in any other public source.
Therefore, it is not possible to download an installer to compare checksums.
However, the checksums in here are generated as part of the build process,
and reflect the files that are packaged and submitted to Chocolatey.
It is still worthwhile comparing the checksums in this file to the ones for the files that have been installed by Chocolatey on your local system.
You can use one of the following methods to obtain the checksum from a local file:
- Use powershell function 'Get-Filehash'
- Use chocolatey utility 'checksum.exe'
File 'LICENSE.txt' is obtained from <https://github.com/Azure/aimazure/blob/main/LICENSE>

Просмотреть файл

@ -4,8 +4,9 @@
<id>biztalkmigrator-azure</id> <id>biztalkmigrator-azure</id>
<!-- Note This version will be overriden by the command line. --> <!-- Note This version will be overriden by the command line. -->
<version>0.0.1-beta</version> <version>0.0.1-beta</version>
<packageSourceUrl>https://github.com/azure/aimazure</packageSourceUrl> <packageSourceUrl>https://github.com/Azure/aimazure/blob/main/build/chocolatey/biztalkmigrator-azure/biztalkmigrator-azure.nuspec</packageSourceUrl>
<title>BizTalk Migrator Dependency - Azure Templates</title> <title>BizTalk Migrator Dependency - Azure Templates</title>
<owners>probertdaniel,345paul,valrobb</owners>
<authors>Microsoft</authors> <authors>Microsoft</authors>
<projectUrl>https://github.com/azure/aimazure</projectUrl> <projectUrl>https://github.com/azure/aimazure</projectUrl>
<projectSourceUrl>https://github.com/azure/aimazure</projectSourceUrl> <projectSourceUrl>https://github.com/azure/aimazure</projectSourceUrl>